Skip to content

Commit 613dfcf

Browse files
committed
Fix UltraArm interface set_ gpio_ State error issue
1 parent 3895e6a commit 613dfcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymycobot/ultraArm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ def set_gpio_state(self, state):
346346
1 - close
347347
"""
348348
if state:
349-
command = ProtocolCode.GPIO_ON + ProtocolCode.END
350-
else:
351349
command = ProtocolCode.GPIO_CLOSE + ProtocolCode.END
350+
else:
351+
command = ProtocolCode.GPIO_ON + ProtocolCode.END
352352
self._serial_port.write(command.encode())
353353
self._serial_port.flush()
354354
self._debug(command)

0 commit comments

Comments
 (0)