heater: Report stats whenever the heater is active
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0a5b07f9da
commit
e0cedfb853
|
@ -194,7 +194,8 @@ class PrinterHeater:
|
||||||
target_temp = self.target_temp
|
target_temp = self.target_temp
|
||||||
last_temp = self.last_temp
|
last_temp = self.last_temp
|
||||||
last_pwm_value = self.last_pwm_value
|
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)
|
self.name, target_temp, last_temp, last_pwm_value)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue