aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-12-16 19:21:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-12-16 19:21:37 -0500
commit0e2d1a190e2f26197a4ebc3f5eaaa87c5b8d71ab (patch)
tree92ab48881e1b7ee5670aecf6cdb2f73161b67319
parent665323eb29c7794776ce64a17786032690ef3a2a (diff)
downloadkutter-0e2d1a190e2f26197a4ebc3f5eaaa87c5b8d71ab.tar.gz
kutter-0e2d1a190e2f26197a4ebc3f5eaaa87c5b8d71ab.tar.xz
kutter-0e2d1a190e2f26197a4ebc3f5eaaa87c5b8d71ab.zip
gcode: Rename bg_temp() to wait_for_temperature()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/extras/pid_calibrate.py2
-rw-r--r--klippy/gcode.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py
index 9c9dc0a4..b7201926 100644
--- a/klippy/extras/pid_calibrate.py
+++ b/klippy/extras/pid_calibrate.py
@@ -31,7 +31,7 @@ class PIDCalibrate:
except self.printer.command_error as e:
heater.set_control(old_control)
raise
- self.gcode.bg_temp(heater)
+ self.gcode.wait_for_temperature(heater)
heater.set_control(old_control)
if write_file:
calibrate.write_file('/tmp/heattest.txt')
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 2406a67c..324208aa 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -390,7 +390,8 @@ class GCodeParser:
if not out:
return "T:0"
return " ".join(out)
- def bg_temp(self, heater):
+ def wait_for_temperature(self, heater):
+ # Helper to wait on heater.check_busy() and report M105 temperatures
if self.is_fileinput:
return
eventtime = self.reactor.monotonic()
@@ -420,7 +421,7 @@ class GCodeParser:
print_time = self.toolhead.get_last_move_time()
heater.set_temp(print_time, temp)
if wait and temp:
- self.bg_temp(heater)
+ self.wait_for_temperature(heater)
# G-Code special command handlers
def cmd_default(self, params):
if not self.is_printer_ready: