🐛 Clear position data recording on timeout

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
This commit is contained in:
Gina Häußge committed 2022-03-02 14:09:47 +01:00
1 parent 8bfa031c46
commit c87667c74f
1 file changed
+2
+2
View File
@@ -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):