aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.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/toolhead.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/toolhead.py')
-rw-r--r--klippy/toolhead.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index 54dae025..d6f41ef1 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -280,6 +280,9 @@ class ToolHead:
self.extruder.motor_off(last_move_time)
self.dwell(STALL_TIME)
logging.debug('; Max time of %f' % (last_move_time,))
+ def query_endstops(self):
+ last_move_time = self.get_last_move_time()
+ return self.kin.query_endstops(last_move_time)
def force_shutdown(self):
self.printer.mcu.force_shutdown()
self.move_queue.reset()