From c87667c74fdaa7407d0cf2ee3c12916149528123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 2 Mar 2022 12:10:29 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Clear=20position=20data=20record?= =?UTF-8?q?ing=20on=20timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we run into a timeout with `M400` and never receive the requested position data in time, don't keep the recording flags set or we will record an outdated position first time we see another `M114` response. See #4440 --- src/octoprint/util/comm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 7feef5bb6..44d7062c1 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1622,6 +1622,7 @@ class MachineCom: timeout ) ) + self._record_cancel_data = False self._cancel_preparation_done() def _cancel_preparation_done(self, check_timer=True, user=None): @@ -1781,6 +1782,7 @@ class MachineCom: timeout ) ) + self._record_pause_data = False self._pause_preparation_done() def _pause_preparation_done(self, check_timer=True, suppress_script=False, user=None):