mcu: Use is_fileoutput() externally

Use mcu.is_fileoutput() instead of looking up the "debugoutput" flag
in the start args.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-09-13 12:06:08 -04:00
parent f1c2f789b6
commit b9586bad18
3 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ class PrinterHomingStepper(PrinterStepper):
logging.info("Endstop for %s is not accurate enough for stepper"
" phase adjustment" % (name,))
self.homing_stepper_phases = None
if printer.get_start_args().get('debugoutput') is not None:
if self.mcu_endstop.get_mcu().is_fileoutput():
self.homing_endstop_accuracy = self.homing_stepper_phases
def enable_endstop_checking(self, move_time, step_time):
mcu_time = self.mcu_endstop.get_mcu().print_to_mcu_time(move_time)