From 28d01e2fa6b7b7f472b5fd50c84766ed9bae57fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 24 Feb 2017 12:32:05 +0100 Subject: [PATCH] Disable external heatup detection until firmware is detected --- src/octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 3653a108..562a3b3a 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -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()