aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-09-13 12:06:08 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-09-19 17:22:29 -0400
commitb9586bad18971c41bcd0d8b8d8c84e366fa08e51 (patch)
treed6b429c4b938874a2db6baa751c5a5e38f4826bf /klippy/stepper.py
parentf1c2f789b65810d258d9f870685acb0c7ee5b8dd (diff)
downloadkutter-b9586bad18971c41bcd0d8b8d8c84e366fa08e51.tar.gz
kutter-b9586bad18971c41bcd0d8b8d8c84e366fa08e51.tar.xz
kutter-b9586bad18971c41bcd0d8b8d8c84e366fa08e51.zip
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>
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 a5477aa8..ffafb395 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -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)