pid_calibrate: Make sure to unregister new control class on error
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
06d73207e7
commit
460cc88f3d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue