From 4b6a65c1e03a889e6004c00f301164495965e49c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 2 Jan 2020 19:17:47 -0500 Subject: heater: Do not flush look-ahead queue on a heater temperature update The print_time parameter of heater.set_temp() is not currently used and it isn't necessary to flush the look-ahead queue just get the print_time. Remove the parameter from heater.set_temp() to avoid flushing the look-ahead queue. Signed-off-by: Kevin O'Connor --- klippy/extras/pid_calibrate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/extras/pid_calibrate.py') diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py index b7201926..689084e9 100644 --- a/klippy/extras/pid_calibrate.py +++ b/klippy/extras/pid_calibrate.py @@ -23,11 +23,11 @@ class PIDCalibrate: heater = pheater.lookup_heater(heater_name) except self.printer.config_error as e: raise self.gcode.error(str(e)) - print_time = self.printer.lookup_object('toolhead').get_last_move_time() + self.printer.lookup_object('toolhead').get_last_move_time() calibrate = ControlAutoTune(heater, target) old_control = heater.set_control(calibrate) try: - heater.set_temp(print_time, target) + heater.set_temp(target) except self.printer.command_error as e: heater.set_control(old_control) raise -- cgit v1.2.3-70-g09d2