Skip to content

Update rplidar.py there is error in Serial module's function #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rplidar.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def iter_measurments(self, max_buf_meas=500):
raw = self._read_response(dsize)
self.logger.debug('Recieved scan response: %s' % raw)
if max_buf_meas:
data_in_buf = self._serial_port.in_waiting
data_in_buf = self._serial_port.inWaiting()#'in_waiting' but Serial module use 'inWaitig' Function
if data_in_buf > max_buf_meas*dsize:
self.logger.warning(
'Too many measurments in the input buffer: %d/%d. '
Expand Down