Skip to content

Commit 785de8d

Browse files
committed
fix bug
1 parent 20aaaa0 commit 785de8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymycobot/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def _process_received(self, data, genre, arm=6):
393393
data_len = data[header_i + 2] - 3
394394

395395
unique_data = [ProtocolCode.GET_BASIC_INPUT, ProtocolCode.GET_DIGITAL_INPUT]
396-
if unique_data == ProtocolCode.GET_DIGITAL_INPUT and arm == 14:
396+
if cmd_id == ProtocolCode.GET_DIGITAL_INPUT and arm == 14:
397397
data_pos = header_i + 4
398398
data_len -= 1
399399
elif cmd_id in unique_data:

0 commit comments

Comments
 (0)