diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-03-05 18:41:21 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-03-05 18:59:01 -0500 |
commit | 64b3e5642eafce951dd93be44c1b4c6a16b1e2fa (patch) | |
tree | b00dc7c91aa94da3cc0c37d5eb91cc5230dc0480 /klippy/extras/pid_calibrate.py | |
parent | 1950380d6c90e57f6fa844f886d208e5391ede7b (diff) | |
download | kutter-64b3e5642eafce951dd93be44c1b4c6a16b1e2fa.tar.gz kutter-64b3e5642eafce951dd93be44c1b4c6a16b1e2fa.tar.xz kutter-64b3e5642eafce951dd93be44c1b4c6a16b1e2fa.zip |
heaters: Make sure set_temp() command wakes up the idle_timeout
Introduce a heaters.set_temperature() command and call that from
commands that set a heater temperature. This new function calls
toolhead.register_lookahead_callback() so that the idle_timeout gets
notification that activity has occurred.
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py index a00f0a1b..f269a373 100644 --- a/klippy/extras/pid_calibrate.py +++ b/klippy/extras/pid_calibrate.py @@ -26,11 +26,10 @@ class PIDCalibrate: calibrate = ControlAutoTune(heater, target) old_control = heater.set_control(calibrate) try: - heater.set_temp(target) + pheaters.set_temperature(heater, target, True) except self.printer.command_error as e: heater.set_control(old_control) raise - pheaters.wait_for_temperature(heater) heater.set_control(old_control) if write_file: calibrate.write_file('/tmp/heattest.txt') |