aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/heater.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-05 13:52:05 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-05 13:52:05 -0500
commit0a5b07f9dafb19fca4305aa141dbae9e7571977b (patch)
treec04804beb5c21220ec31328a395ad4ba6f2eab62 /klippy/heater.py
parent08874b9c91544c012763766c51b6a0c279972140 (diff)
downloadkutter-0a5b07f9dafb19fca4305aa141dbae9e7571977b.tar.gz
kutter-0a5b07f9dafb19fca4305aa141dbae9e7571977b.tar.xz
kutter-0a5b07f9dafb19fca4305aa141dbae9e7571977b.zip
klippy: Allow any stats producer to determine when stats are needed
Instead of using the toolhead class to determine if stats should be reported, allow every printer object with a stats() callback to determine if stats are needed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/heater.py')
-rw-r--r--klippy/heater.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/heater.py b/klippy/heater.py
index 632ae88e..a3ca1913 100644
--- a/klippy/heater.py
+++ b/klippy/heater.py
@@ -194,7 +194,7 @@ class PrinterHeater:
target_temp = self.target_temp
last_temp = self.last_temp
last_pwm_value = self.last_pwm_value
- return '%s: target=%.0f temp=%.0f pwm=%.3f' % (
+ return False, '%s: target=%.0f temp=%.0f pwm=%.3f' % (
self.name, target_temp, last_temp, last_pwm_value)