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>
This commit is contained in:
Kevin O'Connor 2018-06-08 23:51:41 -04:00
parent e90edc0447
commit 4367a985e2
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ class HeaterCheck:
self.fault_systime = self.printer.get_reactor().NEVER self.fault_systime = self.printer.get_reactor().NEVER
def printer_state(self, state): def printer_state(self, state):
if state == 'connect': 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') pheater = self.printer.lookup_object('heater')
self.heater = pheater.lookup_heater(self.heater_name) self.heater = pheater.lookup_heater(self.heater_name)
logging.info("Starting heater checks for %s", self.heater_name) logging.info("Starting heater checks for %s", self.heater_name)