From 8869748ecc0526e964d0b7dec1bb6a54072f41cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 9 Apr 2018 15:53:25 +0200 Subject: [PATCH] Don't trigger ok timeout while heating or in long running command Workaround for printers that don't send busy:processing during heatups like they should. --- src/octoprint/util/comm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 45975124a..3780dbf04 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1554,7 +1554,11 @@ class MachineCom(object): handled = True # process timeouts - elif ((line == "" and now > self._timeout) or (self.isPrinting() and not self.isSdPrinting() and not self.job_on_hold and now > self._ok_timeout)) \ + elif ((line == "" and now > self._timeout) or (self.isPrinting() + and not self.isSdPrinting() + and not self.job_on_hold + and not self._long_running_command + and not self._heating and now > self._ok_timeout)) \ and (not self._blockWhileDwelling or not self._dwelling_until or now > self._dwelling_until): # We have two timeout variants: #