aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/heater.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/heater.py')
-rw-r--r--klippy/heater.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/klippy/heater.py b/klippy/heater.py
index 23ed42cb..d3315a52 100644
--- a/klippy/heater.py
+++ b/klippy/heater.py
@@ -197,6 +197,11 @@ class PrinterHeater:
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)
+ def get_status(self, eventtime):
+ with self.lock:
+ target_temp = self.target_temp
+ last_temp = self.last_temp
+ return {'temperature': last_temp, 'target': target_temp}
######################################################################