From 5c712f69370ab75af020348a38edc8117d4f3298 Mon Sep 17 00:00:00 2001 From: Vishal Date: Mon, 26 Jun 2017 01:37:52 +0530 Subject: [PATCH] Update rplidar.py There was error with Serial module's function to read all data from Serial port. 'read_all()' function was used instead of 'readall()'. --- rplidar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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