Skip to content

Commit 5572b55

Browse files
beniroquaiCopilot
andauthored
Update uc2rest/motor.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f3e19ec commit 5572b55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uc2rest/motor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def move_stepper(self, steps=(0,0,0,0), speed=(1000,1000,1000,1000), is_absolute
549549
self.isRunning = True
550550
is_blocking = not self._parent.is_wifi and is_blocking and self._parent.serial.is_connected
551551
timeout = timeout if is_blocking else 0
552-
nResponses = len(payload["motor"])+1
552+
nResponses = len(payload["motor"]["steppers"]) + 1
553553
# if we get a return, we will receive the latest position feedback from the driver by means of the axis that moves the longest
554554
r = self._parent.post_json(path, payload, getReturn=is_blocking, timeout=timeout, nResponses=nResponses)
555555

0 commit comments

Comments
 (0)