From 665323eb29c7794776ce64a17786032690ef3a2a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 16 Dec 2019 19:16:58 -0500 Subject: heater: Use printer.command_error() instead of internal heater.error() Use the more standard command_error to report invalid temperature requests. Signed-off-by: Kevin O'Connor --- klippy/extras/pid_calibrate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/extras/pid_calibrate.py') diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py index 0eb7c382..9c9dc0a4 100644 --- a/klippy/extras/pid_calibrate.py +++ b/klippy/extras/pid_calibrate.py @@ -28,9 +28,9 @@ class PIDCalibrate: old_control = heater.set_control(calibrate) try: heater.set_temp(print_time, target) - except heater.error as e: + except self.printer.command_error as e: heater.set_control(old_control) - raise self.gcode.error(str(e)) + raise self.gcode.bg_temp(heater) heater.set_control(old_control) if write_file: -- cgit v1.2.3-70-g09d2