aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/heater_bed.py3
-rw-r--r--klippy/extras/pid_calibrate.py4
2 files changed, 3 insertions, 4 deletions
diff --git a/klippy/extras/heater_bed.py b/klippy/extras/heater_bed.py
index f20c157b..c8f68f2e 100644
--- a/klippy/extras/heater_bed.py
+++ b/klippy/extras/heater_bed.py
@@ -20,8 +20,7 @@ class PrinterHeaterBed:
gcode = self.printer.lookup_object('gcode')
temp = gcode.get_float('S', params, 0.)
toolhead = self.printer.lookup_object('toolhead')
- print_time = toolhead.get_last_move_time()
- self.heater.set_temp(print_time, temp)
+ self.heater.set_temp(temp)
if wait and temp:
gcode.wait_for_temperature(self.heater)
def cmd_M190(self, params):
diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py
index b7201926..689084e9 100644
--- a/klippy/extras/pid_calibrate.py
+++ b/klippy/extras/pid_calibrate.py
@@ -23,11 +23,11 @@ class PIDCalibrate:
heater = pheater.lookup_heater(heater_name)
except self.printer.config_error as e:
raise self.gcode.error(str(e))
- print_time = self.printer.lookup_object('toolhead').get_last_move_time()
+ self.printer.lookup_object('toolhead').get_last_move_time()
calibrate = ControlAutoTune(heater, target)
old_control = heater.set_control(calibrate)
try:
- heater.set_temp(print_time, target)
+ heater.set_temp(target)
except self.printer.command_error as e:
heater.set_control(old_control)
raise