heater: Add stats reporting

Report the current temperature, current pwm setting, and target
temperature as statistics in the log.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-01-28 23:37:56 -05:00
parent 650d55d7b2
commit 6eefbe5e30
2 changed files with 10 additions and 1 deletions

View file

@ -53,6 +53,8 @@ class PrinterExtruder:
if is_active:
return self.activate_gcode
return self.deactivate_gcode
def stats(self, eventtime):
return self.heater.stats(eventtime)
def motor_off(self, print_time):
self.stepper.motor_enable(print_time, 0)
self.need_motor_enable = True