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.
This commit is contained in:
Gina Häußge committed 2018-04-09 15:53:25 +02:00
1 parent e0b0f2ae18
commit 8869748ecc
1 file changed
+5 -1
+5 -1
View File
@@ -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:
#