From 4cb103e042966af0a2138a1bd3c5550277bb9eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 8 Jun 2018 11:03:44 +0200 Subject: [PATCH] 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. --- src/octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index c1309e1de..ffc3efbda 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -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",