Disable external heatup detection until firmware is detected

This commit is contained in:
Gina Häußge 2017-02-24 12:32:05 +01:00
parent 2198add8e6
commit 28d01e2fa6

View file

@ -1195,7 +1195,7 @@ class MachineCom(object):
# temperature processing
elif ' T:' in line or line.startswith('T:') or ' T0:' in line or line.startswith('T0:') or ((' B:' in line or line.startswith('B:')) and not 'A:' in line):
if not disable_external_heatup_detection and not line.strip().startswith("ok") and not self._heating:
if not disable_external_heatup_detection and not line.strip().startswith("ok") and not self._heating and self._firmwareInfoReceived:
self._logger.debug("Externally triggered heatup detected")
self._heating = True
self._heatupWaitStartTime = time.time()