aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-04-04 14:13:59 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-04-04 23:14:33 -0400
commit0fc4f0946ed6801de1a3403311f5fc2836559dd9 (patch)
tree5750b7cce9cef41a4905e2f76c2193c7a390e43c /klippy/extras
parent7e78b2665e23f2b6194ff438a39b5440fa514ee3 (diff)
downloadkutter-0fc4f0946ed6801de1a3403311f5fc2836559dd9.tar.gz
kutter-0fc4f0946ed6801de1a3403311f5fc2836559dd9.tar.xz
kutter-0fc4f0946ed6801de1a3403311f5fc2836559dd9.zip
heater: Move adc logic into Thermistor class
The Thermistor (and Linear) class should handle all the details of reading the ADC values and converting them to temperatures. So, move that logic out of the Heater() class. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/pid_calibrate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py
index 1caffeb7..bd2b29d6 100644
--- a/klippy/extras/pid_calibrate.py
+++ b/klippy/extras/pid_calibrate.py
@@ -62,7 +62,7 @@ class ControlAutoTune:
self.pwm_samples.append((read_time + heater.PWM_DELAY, value))
self.last_pwm = value
self.heater.set_pwm(read_time, value)
- def adc_callback(self, read_time, temp):
+ def temperature_callback(self, read_time, temp):
self.temp_samples.append((read_time, temp))
if self.heating and temp >= self.heater.target_temp:
self.heating = False