From 9e1059afb46c9df439211d21590da987b32e2963 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 17 Nov 2016 17:24:03 -0500 Subject: homing: Create QueryEndstops class from gcode Create the QueryEndstops in the gcode handler instead of in the kinematic classes. This simplifies the gcode handler as it can directly register its response callback. Also, store the stepper name in the stepper class. Also, propagate the print_time of the query request to the mcu_endstop class. Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'klippy/toolhead.py') diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 91843805..91bcd87f 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -279,9 +279,8 @@ 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 query_endstops(self, query_state): + return self.kin.query_endstops(query_state) def force_shutdown(self): self.printer.mcu.force_shutdown() self.move_queue.reset() -- cgit v1.2.3-70-g09d2