Skip to content

Commit 03a9556

Browse files
committed
wait_move: only wait in position mode
1 parent 7944f14 commit 03a9556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarm/x3/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,8 +2179,8 @@ def wait_move(self, timeout=None):
21792179
if self.error_code != 0:
21802180
self.log_api_info('wait_move, xarm has error, error={}'.format(self.error_code), code=APIState.HAS_ERROR)
21812181
return APIState.HAS_ERROR
2182-
# no wait in velocity mode
2183-
if self.mode in [4, 5]:
2182+
# only wait in position mode
2183+
if self.mode != 0:
21842184
return 0
21852185
if self.is_stop:
21862186
_, state = self.get_state()

0 commit comments

Comments
 (0)