From 460cc88f3dd00bb17252c2d90d38207dfded50ab Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 6 Apr 2018 10:56:34 -0400 Subject: [PATCH] pid_calibrate: Make sure to unregister new control class on error Signed-off-by: Kevin O'Connor --- klippy/extras/pid_calibrate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/klippy/extras/pid_calibrate.py b/klippy/extras/pid_calibrate.py index 99f6da71..769d8cbc 100644 --- a/klippy/extras/pid_calibrate.py +++ b/klippy/extras/pid_calibrate.py @@ -29,6 +29,7 @@ class PIDCalibrate: try: heater.set_temp(print_time, target) except heater.error as e: + heater.set_control(old_control) raise self.gcode.error(str(e)) self.gcode.bg_temp(heater) heater.set_control(old_control)