gcode: Rename bg_temp() to wait_for_temperature()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
665323eb29
commit
0e2d1a190e
|
@ -31,7 +31,7 @@ class PIDCalibrate:
|
||||||
except self.printer.command_error as e:
|
except self.printer.command_error as e:
|
||||||
heater.set_control(old_control)
|
heater.set_control(old_control)
|
||||||
raise
|
raise
|
||||||
self.gcode.bg_temp(heater)
|
self.gcode.wait_for_temperature(heater)
|
||||||
heater.set_control(old_control)
|
heater.set_control(old_control)
|
||||||
if write_file:
|
if write_file:
|
||||||
calibrate.write_file('/tmp/heattest.txt')
|
calibrate.write_file('/tmp/heattest.txt')
|
||||||
|
|
|
@ -390,7 +390,8 @@ class GCodeParser:
|
||||||
if not out:
|
if not out:
|
||||||
return "T:0"
|
return "T:0"
|
||||||
return " ".join(out)
|
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:
|
if self.is_fileinput:
|
||||||
return
|
return
|
||||||
eventtime = self.reactor.monotonic()
|
eventtime = self.reactor.monotonic()
|
||||||
|
@ -420,7 +421,7 @@ class GCodeParser:
|
||||||
print_time = self.toolhead.get_last_move_time()
|
print_time = self.toolhead.get_last_move_time()
|
||||||
heater.set_temp(print_time, temp)
|
heater.set_temp(print_time, temp)
|
||||||
if wait and temp:
|
if wait and temp:
|
||||||
self.bg_temp(heater)
|
self.wait_for_temperature(heater)
|
||||||
# G-Code special command handlers
|
# G-Code special command handlers
|
||||||
def cmd_default(self, params):
|
def cmd_default(self, params):
|
||||||
if not self.is_printer_ready:
|
if not self.is_printer_ready:
|
||||||
|
|
Loading…
Reference in New Issue