diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-04-04 14:53:47 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-04-04 23:14:55 -0400 |
commit | 06d73207e73f751eca9cf19ad96251da5c245955 (patch) | |
tree | 5efb9566978d8e48ef6ee4a7b672523f4a846a27 /klippy/extras/pid_calibrate.py | |
parent | 0fc4f0946ed6801de1a3403311f5fc2836559dd9 (diff) | |
download | kutter-06d73207e73f751eca9cf19ad96251da5c245955.tar.gz kutter-06d73207e73f751eca9cf19ad96251da5c245955.tar.xz kutter-06d73207e73f751eca9cf19ad96251da5c245955.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/pid_calibrate.py')
-rw-r--r-- | klippy/extras/pid_calibrate.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |