Skip to content

Commit ba40ad6

Browse files
beniroquaiCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 6ced38b commit ba40ad6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

uc2rest/home.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ def home(self, axis=None, timeout=None, speed=None, direction=None, endposreleas
322322

323323
timeout = timeout if isBlocking else 0
324324
nResponses = 2 # one for command received, one for home reached
325-
if timeout>100:
326-
timeout = timeout//1000
325+
if timeout and timeout > 1000:
326+
timeout = timeout / 1000.0
327327

328328
# if we get a return, we will receive the latest position feedback from the driver by means of the axis that moves the longest
329329
r = self._parent.post_json(path, payload, getReturn=isBlocking, timeout=timeout, nResponses=nResponses)

0 commit comments

Comments
 (0)