mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-13 09:48:00 -06:00
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 <kevin@koconnor.net>
This commit is contained in:
parent
dabffcc22c
commit
4b6a65c1e0
4 changed files with 10 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue