diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-11-17 17:24:03 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-11-18 14:04:09 -0500 |
commit | 9e1059afb46c9df439211d21590da987b32e2963 (patch) | |
tree | efaede08f7dd8ade191cd7c4c4ddf0e7b5576086 /klippy/toolhead.py | |
parent | 7ef8c0442a719ef80b9ef4109ab7e8fa57157854 (diff) | |
download | kutter-9e1059afb46c9df439211d21590da987b32e2963.tar.gz kutter-9e1059afb46c9df439211d21590da987b32e2963.tar.xz kutter-9e1059afb46c9df439211d21590da987b32e2963.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r-- | klippy/toolhead.py | 5 |
1 files changed, 2 insertions, 3 deletions
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() |