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/heater_bed.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'klippy/extras/heater_bed.py') diff --git a/klippy/extras/heater_bed.py b/klippy/extras/heater_bed.py index f20c157b..c8f68f2e 100644 --- a/klippy/extras/heater_bed.py +++ b/klippy/extras/heater_bed.py @@ -20,8 +20,7 @@ class PrinterHeaterBed: gcode = self.printer.lookup_object('gcode') temp = gcode.get_float('S', params, 0.) toolhead = self.printer.lookup_object('toolhead') - print_time = toolhead.get_last_move_time() - self.heater.set_temp(print_time, temp) + self.heater.set_temp(temp) if wait and temp: gcode.wait_for_temperature(self.heater) def cmd_M190(self, params): -- cgit v1.2.3-70-g09d2