heaters: Fix TEMPERATURE_WAIT command with extruder and heater_bed

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-12-22 15:22:13 -05:00
parent a59461e20e
commit a637c2f110
1 changed files with 4 additions and 1 deletions

View File

@ -332,7 +332,10 @@ 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
sensor = self.printer.lookup_object(sensor_name) if sensor_name in self.heaters:
sensor = self.heaters[sensor_name]
else:
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()
eventtime = reactor.monotonic() eventtime = reactor.monotonic()