heaters: Fix TEMPERATURE_WAIT command with extruder and heater_bed
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
a59461e20e
commit
a637c2f110
|
@ -332,6 +332,9 @@ class PrinterHeaters:
|
||||||
min_temp = gcmd.get_float('MINIMUM')
|
min_temp = gcmd.get_float('MINIMUM')
|
||||||
if self.printer.get_start_args().get('debugoutput') is not None:
|
if self.printer.get_start_args().get('debugoutput') is not None:
|
||||||
return
|
return
|
||||||
|
if sensor_name in self.heaters:
|
||||||
|
sensor = self.heaters[sensor_name]
|
||||||
|
else:
|
||||||
sensor = self.printer.lookup_object(sensor_name)
|
sensor = self.printer.lookup_object(sensor_name)
|
||||||
toolhead = self.printer.lookup_object("toolhead")
|
toolhead = self.printer.lookup_object("toolhead")
|
||||||
reactor = self.printer.get_reactor()
|
reactor = self.printer.get_reactor()
|
||||||
|
|
Loading…
Reference in New Issue