Skip to content

Commit 4b4a144

Browse files
committed
fix is_servo_enable, reson: return 2 value.
1 parent 08df5db commit 4b4a144

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymycobot/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ def _process_received(self, data, genre):
151151
one = valid_data[idx : idx + 2]
152152
res.append(self._decode_int16(one))
153153
elif data_len == 2:
154+
if genre in [Command.IS_SERVO_ENABLE]:
155+
return [self._decode_int8(valid_data[1:2])]
154156
res.append(self._decode_int16(valid_data))
155157
else:
156158
res.append(self._decode_int8(valid_data))

0 commit comments

Comments
 (0)