klippy: Allow any stats producer to determine when stats are needed
Instead of using the toolhead class to determine if stats should be reported, allow every printer object with a stats() callback to determine if stats are needed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -194,7 +194,7 @@ class PrinterHeater:
|
||||
target_temp = self.target_temp
|
||||
last_temp = self.last_temp
|
||||
last_pwm_value = self.last_pwm_value
|
||||
return '%s: target=%.0f temp=%.0f pwm=%.3f' % (
|
||||
return False, '%s: target=%.0f temp=%.0f pwm=%.3f' % (
|
||||
self.name, target_temp, last_temp, last_pwm_value)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user