aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-12-08 12:42:12 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-12-09 17:09:51 -0500
commita6de1db94d108f401f7f3e67f735743106e16837 (patch)
tree8b26f59cc412e155b3d1d271a2413338ee7ff015 /klippy/toolhead.py
parented9d7e4fae6eb042f93504553c9445cb8d136c4e (diff)
downloadkutter-a6de1db94d108f401f7f3e67f735743106e16837.tar.gz
kutter-a6de1db94d108f401f7f3e67f735743106e16837.tar.xz
kutter-a6de1db94d108f401f7f3e67f735743106e16837.zip
gcode: Rework endstop query to use greenlets
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index ec215d6b..eedda4b5 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -272,8 +272,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, query_state):
- return self.kin.query_endstops(query_state)
+ 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()