diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-06-08 23:51:41 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-06-08 23:51:41 -0400 |
commit | 4367a985e2f8a9153649352c98182ee86366b8fc (patch) | |
tree | bd38b169711b2389f15b5d4e6583581bc2870fa1 /klippy/extras | |
parent | e90edc04477d9ebe3f50b0e4a7ab7b4dc1ad1f10 (diff) | |
download | kutter-4367a985e2f8a9153649352c98182ee86366b8fc.tar.gz kutter-4367a985e2f8a9153649352c98182ee86366b8fc.tar.xz kutter-4367a985e2f8a9153649352c98182ee86366b8fc.zip |
verify_heater: Disable when writing output to a debug file
Disable the verify_heater checks when debugging, as otherwise it can
cause failures when processing files in batch mode.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/verify_heater.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/extras/verify_heater.py b/klippy/extras/verify_heater.py index 41ef2613..ba7add6c 100644 --- a/klippy/extras/verify_heater.py +++ b/klippy/extras/verify_heater.py @@ -28,6 +28,9 @@ class HeaterCheck: self.fault_systime = self.printer.get_reactor().NEVER def printer_state(self, state): if state == 'connect': + if self.printer.get_start_args().get('debugoutput') is not None: + # Disable verify_heater if outputting to a debug file + return pheater = self.printer.lookup_object('heater') self.heater = pheater.lookup_heater(self.heater_name) logging.info("Starting heater checks for %s", self.heater_name) |