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:
@@ -145,7 +145,6 @@ class PrinterExtruder:
|
||||
start_v, cruise_v, accel)
|
||||
def cmd_M104(self, params, wait=False):
|
||||
# Set Extruder Temperature
|
||||
toolhead = self.printer.lookup_object('toolhead')
|
||||
gcode = self.printer.lookup_object('gcode')
|
||||
temp = gcode.get_float('S', params, 0.)
|
||||
if 'T' in params:
|
||||
@@ -159,10 +158,9 @@ class PrinterExtruder:
|
||||
return
|
||||
raise gcode.error("Extruder not configured")
|
||||
else:
|
||||
extruder = toolhead.get_extruder()
|
||||
print_time = toolhead.get_last_move_time()
|
||||
extruder = self.printer.lookup_object('toolhead').get_extruder()
|
||||
heater = extruder.get_heater()
|
||||
heater.set_temp(print_time, temp)
|
||||
heater.set_temp(temp)
|
||||
if wait and temp:
|
||||
gcode.wait_for_temperature(heater)
|
||||
def cmd_M109(self, params):
|
||||
|
||||
Reference in New Issue
Block a user