Skip to content

Commit 2280e98

Browse files
author
changji
committed
fix mode issue
1 parent b0893dc commit 2280e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymycobot/ultraArm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def set_mode(self, mode=None):
297297
298298
1 - Relative Cartesian mode
299299
"""
300-
if mode:
300+
if mode == 0:
301301
command = ProtocolCode.ABS_CARTESIAN + ProtocolCode.END
302302
else:
303303
command = ProtocolCode.REL_CARTESIAN + ProtocolCode.END

0 commit comments

Comments
 (0)