From d03cf2b83f9df6b802af72860d8d3b56df89956f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 11 Oct 2017 22:16:02 -0400 Subject: adccmds: Continue to query analog inputs after a shutdown Continue to sample the ADC input pins even if the MCU goes into a shutdown state. This enables the printer to continue reporting temperatures even on an mcu error. Signed-off-by: Kevin O'Connor --- klippy/fan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/fan.py') diff --git a/klippy/fan.py b/klippy/fan.py index 112fb34c..3f9bd63d 100644 --- a/klippy/fan.py +++ b/klippy/fan.py @@ -41,7 +41,7 @@ class PrinterHeaterFan: self.heater_temp = config.getfloat("heater_temp", 50.0) printer.reactor.register_timer(self.callback, printer.reactor.NOW) def callback(self, eventtime): - current_temp, target_temp = self.heater.get_temp() + current_temp, target_temp = self.heater.get_temp(eventtime) if not current_temp and not target_temp and not self.fan.last_fan_time: # Printer still starting return eventtime + 1. -- cgit v1.2.3-70-g09d2