From 64b3e5642eafce951dd93be44c1b4c6a16b1e2fa Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 5 Mar 2021 18:41:21 -0500 Subject: 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 --- klippy/extras/pid_calibrate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'klippy/extras/pid_calibrate.py') 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') -- cgit v1.2.3-70-g09d2