SkoltechRobotics / rplidar

Python module for RPLidar A1 and A2 rangefinder scanners
MIT License
185 stars 126 forks source link

Update rplidar.py #12

Open me-unpredictable opened 7 years ago

me-unpredictable commented 7 years ago

There was error with Serial module's function to read all data from Serial port. 'read_all()' function was used instead of 'readall()'.

jjehl commented 7 years ago

On my pull I propose : self._serial.flushInput() it is really faster than readall