aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-08-21 17:19:43 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-08-25 19:27:05 -0400
commit268834e4aedac2e435e778802353e767d6b8abe3 (patch)
treee3970bf8774b8401d80e97e37886a45276846c33 /klippy/stepper.py
parentb80c488d36fa22313616d3eacdcf3fcc284f972f (diff)
downloadkutter-268834e4aedac2e435e778802353e767d6b8abe3.tar.gz
kutter-268834e4aedac2e435e778802353e767d6b8abe3.tar.xz
kutter-268834e4aedac2e435e778802353e767d6b8abe3.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py2
1 files changed, 1 insertions, 1 deletions
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)