aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/pid_calibrate.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-04-25 13:27:41 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-04-25 14:26:45 -0400
commit17123889f698e2339049bd18e7ece01b9c53e892 (patch)
treee6899a2fcb2df8ca4e10bab9a15f0617ed912805 /klippy/extras/pid_calibrate.py
parentd858498a53fe98ed705595b8639b50b219d6262f (diff)
downloadkutter-17123889f698e2339049bd18e7ece01b9c53e892.tar.gz
kutter-17123889f698e2339049bd18e7ece01b9c53e892.tar.xz
kutter-17123889f698e2339049bd18e7ece01b9c53e892.zip
heaters: Make heater.py an "extras" module
The heater logic is an independent module that does not need to be treated as part of the "core" klipper code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/pid_calibrate.py')
-rw-r--r--klippy/extras/pid_calibrate.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py
index 49ae3bb4..b5dbc773 100644
--- a/klippy/extras/pid_calibrate.py
+++ b/klippy/extras/pid_calibrate.py
@@ -18,9 +18,9 @@ class PIDCalibrate:
heater_name = self.gcode.get_str('HEATER', params)
target = self.gcode.get_float('TARGET', params)
write_file = self.gcode.get_int('WRITE_FILE', params, 0)
- pheater = self.printer.lookup_object('heater')
+ pheaters = self.printer.lookup_object('heaters')
try:
- heater = pheater.lookup_heater(heater_name)
+ heater = pheaters.lookup_heater(heater_name)
except self.printer.config_error as e:
raise self.gcode.error(str(e))
self.printer.lookup_object('toolhead').get_last_move_time()
@@ -31,7 +31,7 @@ class PIDCalibrate:
except self.printer.command_error as e:
heater.set_control(old_control)
raise
- pheater.wait_for_temperature(heater)
+ pheaters.wait_for_temperature(heater)
heater.set_control(old_control)
if write_file:
calibrate.write_file('/tmp/heattest.txt')