From 24587b6608b982f6a7cc6ab528fb5f23fff47e78 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Tue, 8 Dec 2015 15:08:55 -0500 Subject: [PATCH] Keep updating the temperature even in paused state --- Cura/util/machineCom.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cura/util/machineCom.py b/Cura/util/machineCom.py index 90c9d3eb..a0a763a7 100644 --- a/Cura/util/machineCom.py +++ b/Cura/util/machineCom.py @@ -530,6 +530,14 @@ class MachineCom(object): else: self._gcodePos = newPos elif self._state == self.STATE_PAUSED: + #Even when printing request the temperature every 5 seconds. + if time.time() > tempRequestTimeout: + if self._extruderCount > 0: + self._temperatureRequestExtruder = (self._temperatureRequestExtruder + 1) % self._extruderCount + self.sendCommand("M105 T%d" % (self._temperatureRequestExtruder)) + else: + self.sendCommand("M105") + tempRequestTimeout = time.time() + 5 if line == '' and time.time() > timeout: line = 'ok' if 'ok' in line: -- 2.30.2