aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/fan.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-10-11 22:16:02 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-10-12 11:59:27 -0400
commitd03cf2b83f9df6b802af72860d8d3b56df89956f (patch)
treeb9f61292f67fcf0548eaa8f5b3a7c491290689fd /klippy/fan.py
parent744c6d114e3681a2e8cfcd4475424a7d19774d52 (diff)
downloadkutter-d03cf2b83f9df6b802af72860d8d3b56df89956f.tar.gz
kutter-d03cf2b83f9df6b802af72860d8d3b56df89956f.tar.xz
kutter-d03cf2b83f9df6b802af72860d8d3b56df89956f.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/fan.py')
-rw-r--r--klippy/fan.py2
1 files changed, 1 insertions, 1 deletions
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.