Skip to content

Commit c513394

Browse files
committed
fix bug
1 parent 78312bd commit c513394

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymycobot/common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def _process_received(self, data, genre, arm=6):
389389

390390
unique_data = [ProtocolCode.GET_BASIC_INPUT, ProtocolCode.GET_DIGITAL_INPUT]
391391

392-
if cmd_id in unique_data:
392+
if cmd_id in unique_data and arm != 14:
393393
if arm == 12:
394394
data_pos = header_i + 6
395395
else:
@@ -400,7 +400,6 @@ def _process_received(self, data, genre, arm=6):
400400
data_pos = header_i + 4
401401
elif arm == 12:
402402
data_pos = header_i + 5
403-
404403
valid_data = data[data_pos : data_pos + data_len]
405404

406405
# process valid data

0 commit comments

Comments
 (0)