aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-05 13:55:59 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-05 13:55:59 -0500
commite0cedfb853c6495e352daff98b34b316d5a71d57 (patch)
tree2679605e0ce851917272bc6c476a26933046623d
parent0a5b07f9dafb19fca4305aa141dbae9e7571977b (diff)
downloadkutter-e0cedfb853c6495e352daff98b34b316d5a71d57.tar.gz
kutter-e0cedfb853c6495e352daff98b34b316d5a71d57.tar.xz
kutter-e0cedfb853c6495e352daff98b34b316d5a71d57.zip
heater: Report stats whenever the heater is active
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/heater.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/heater.py b/klippy/heater.py
index a3ca1913..23ed42cb 100644
--- a/klippy/heater.py
+++ b/klippy/heater.py
@@ -194,7 +194,8 @@ class PrinterHeater:
target_temp = self.target_temp
last_temp = self.last_temp
last_pwm_value = self.last_pwm_value
- return False, '%s: target=%.0f temp=%.0f pwm=%.3f' % (
+ is_active = target_temp or last_temp > 50.
+ return is_active, '%s: target=%.0f temp=%.1f pwm=%.3f' % (
self.name, target_temp, last_temp, last_pwm_value)