mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
Fix issue #39
This commit is contained in:
parent
d3e4c58c5a
commit
9abe2495b0
@ -421,7 +421,7 @@ class EncodedMotor(Motor):
|
||||
angle = unpack("<l", data[0:4])[0]
|
||||
return (angle,)
|
||||
elif self._port_mode.mode == self.SENSOR_SPEED:
|
||||
speed = unpack("<b", data[0])[0]
|
||||
speed = unpack("<b", data[0:1])[0]
|
||||
return (speed,)
|
||||
else:
|
||||
log.debug("Got motor sensor data while in unexpected mode: %r", self._port_mode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user