Skip to content

Commit 92ea21a

Browse files
committed
修复p340 is_moving_end()接口
1 parent 61f9bf5 commit 92ea21a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymycobot/ultraArm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -647,14 +647,14 @@ def open(self):
647647
with self.lock:
648648
self._serial_port.open()
649649

650-
def is_moving_end(self, timeout = 10):
650+
def is_moving_end(self):
651651
with self.lock:
652652
"""Get the current state of all home switches."""
653653
command = ProtocolCode.IS_MOVING_END + ProtocolCode.END
654654
self._serial_port.write(command.encode())
655655
self._serial_port.flush()
656656
self._debug(command)
657-
return self._request("isStop", timeout=10)
657+
return self._request("isStop")
658658

659659
def sync(self):
660660
while self.is_moving_end() != 1:

0 commit comments

Comments
 (0)