From 06d73207e73f751eca9cf19ad96251da5c245955 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 4 Apr 2018 14:53:47 -0400 Subject: heater: Move Thermistor and Linear to their own files in extras/ Move the Thermistor code to a new thermistor.py module. Move the Linear code to a new adc_temperature.py module. This simplifies the heater.py code. Signed-off-by: Kevin O'Connor --- klippy/extras/pid_calibrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/pid_calibrate.py') diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py index bd2b29d6..99f6da71 100644 --- a/klippy/extras/pid_calibrate.py +++ b/klippy/extras/pid_calibrate.py @@ -59,7 +59,7 @@ class ControlAutoTune: # Heater control def set_pwm(self, read_time, value): if value != self.last_pwm: - self.pwm_samples.append((read_time + heater.PWM_DELAY, value)) + self.pwm_samples.append((read_time + self.heater.pwm_delay, value)) self.last_pwm = value self.heater.set_pwm(read_time, value) def temperature_callback(self, read_time, temp): -- cgit v1.2.3-70-g09d2