heater: Report stats whenever the heater is active

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-02-05 13:55:59 -05:00
parent 0a5b07f9da
commit e0cedfb853
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ class PrinterHeater:
target_temp = self.target_temp
last_temp = self.last_temp
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)