diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-12-16 19:16:58 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-12-16 19:16:58 -0500 |
commit | 665323eb29c7794776ce64a17786032690ef3a2a (patch) | |
tree | ae19bd7bff5cb564c5406d1d9a3b92bfe04d2612 /klippy/extras | |
parent | 254789f4c570426f589e3cf966dac12a0600b6a5 (diff) | |
download | kutter-665323eb29c7794776ce64a17786032690ef3a2a.tar.gz kutter-665323eb29c7794776ce64a17786032690ef3a2a.tar.xz kutter-665323eb29c7794776ce64a17786032690ef3a2a.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/pid_calibrate.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |