aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-12-22 15:22:13 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-12-22 15:22:13 -0500
commita637c2f11019faecb4a4d244ea0ce9815a784b43 (patch)
tree2fa14cebf25431b04ba6ffc86d6205923f9b441c
parenta59461e20e1f4913fef9b774ca9f93230046af81 (diff)
downloadkutter-a637c2f11019faecb4a4d244ea0ce9815a784b43.tar.gz
kutter-a637c2f11019faecb4a4d244ea0ce9815a784b43.tar.xz
kutter-a637c2f11019faecb4a4d244ea0ce9815a784b43.zip
heaters: Fix TEMPERATURE_WAIT command with extruder and heater_bed
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/extras/heaters.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py
index 840bbfd5..b9878e2a 100644
--- a/klippy/extras/heaters.py
+++ b/klippy/extras/heaters.py
@@ -332,7 +332,10 @@ class PrinterHeaters:
min_temp = gcmd.get_float('MINIMUM')
if self.printer.get_start_args().get('debugoutput') is not None:
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")
reactor = self.printer.get_reactor()
eventtime = reactor.monotonic()