diff options
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/extras/heaters.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py index 7dca5fd4..cd426f30 100644 --- a/klippy/extras/heaters.py +++ b/klippy/extras/heaters.py @@ -135,7 +135,9 @@ class Heater: with self.lock: target_temp = self.target_temp smoothed_temp = self.smoothed_temp - return {'temperature': smoothed_temp, 'target': target_temp} + last_pwm_value = self.last_pwm_value + return {'temperature': smoothed_temp, 'target': target_temp, + 'power': last_pwm_value} cmd_SET_HEATER_TEMPERATURE_help = "Sets a heater temperature" def cmd_SET_HEATER_TEMPERATURE(self, gcmd): temp = gcmd.get_float('TARGET', 0.) |