Fix cancel_preparation call in case of failure
It should be _failed if the timer runs out, not _done. Only difference is a log entry though, so not that big of a deal.
This commit is contained in:
1 parent
db81bf1e72
commit
4cb103e042
1 file changed
+1
-1
@@ -1177,7 +1177,7 @@ class MachineCom(object):
|
||||
if self._cancel_position_timer is not None:
|
||||
self._cancel_position_timer.cancel()
|
||||
self._cancel_position_timer = ResettableTimer(self._timeout_intervals.get("positionLogWait", 10.0),
|
||||
self._cancel_preparation_done)
|
||||
self._cancel_preparation_failed)
|
||||
self._cancel_position_timer.daemon = True
|
||||
self._cancel_position_timer.start()
|
||||
self.sendCommand("M114", tags=tags | {"trigger:comm.cancel",
|
||||
|
||||
Reference in new issue
Block a user