aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-09-22 11:09:20 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-09-22 11:29:27 -0400
commit0685802cb8b72c44e3e87e1011ed99b43d3bca44 (patch)
treeffffe062070549ad41a8435da67f1e67b090b1ff /klippy/stepper.py
parentc8ff439722eae62d3e3bbb11f77c987b8e594959 (diff)
downloadkutter-0685802cb8b72c44e3e87e1011ed99b43d3bca44.tar.gz
kutter-0685802cb8b72c44e3e87e1011ed99b43d3bca44.tar.xz
kutter-0685802cb8b72c44e3e87e1011ed99b43d3bca44.zip
homing: Support querying the current status of endstops
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index 084f0131..310a0711 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -80,6 +80,11 @@ class PrinterStepper:
mcu_time = self.mcu_endstop.print_to_mcu_time(move_time)
self.mcu_endstop.home(mcu_time, step_time)
return self.mcu_endstop
+ def query_endstop(self):
+ if self.mcu_endstop is None:
+ return None
+ self.mcu_endstop.query_endstop()
+ return self.mcu_endstop
def get_homed_position(self):
if not self.homing_stepper_phases:
return self.position_endstop