diff --git a/rplidar.py b/rplidar.py index fd6a3dc..09b366f 100644 --- a/rplidar.py +++ b/rplidar.py @@ -257,7 +257,7 @@ def get_health(self): def clear_input(self): '''Clears input buffer by reading all available data''' - self._serial_port.read_all() + self._serial_port.readall()# it was written self._serial_port.read_all() but it is wrong fucntion Serial module use readall() function def stop(self): '''Stops scanning process, disables laser diode and the measurment