mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-10 00:07:54 -06:00
heaters: add last pwm value to heater.get_status (#3621)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
43a6d18f13
commit
77add95675
2 changed files with 5 additions and 1 deletions
|
@ -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.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue