From 268834e4aedac2e435e778802353e767d6b8abe3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 21 Aug 2017 17:19:43 -0400 Subject: klippy: Store printer startup parameters in new "start_args" dictionary Store pertinent information from the software startup in a dictionary that the various printer components can access instead of in individual variables in the Printer() class. This makes it easier to add future command-line options. Signed-off-by: Kevin O'Connor --- klippy/stepper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/stepper.py') diff --git a/klippy/stepper.py b/klippy/stepper.py index 1b2841f4..f5085bc0 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -91,7 +91,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.mcu.is_fileoutput(): + if printer.get_start_args().get('debugoutput') is not None: self.homing_endstop_accuracy = self.homing_stepper_phases def enable_endstop_checking(self, move_time, step_time): mcu_time = self.mcu_endstop.print_to_mcu_time(move_time) -- cgit v1.2.3-70-g09d2