mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-10 16:27:55 -06:00
homing: Merge home_prepare()/home_finalize() into move_begin/move_end events
Collapse the "homing:move_begin", "homing:move_end", home_prepare(), and home_finalize() into two new events: "homing:homing_move_begin" and "homing:homing_move_end". This simplifies the homing code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b23346a521
commit
feb15eaf2e
7 changed files with 63 additions and 74 deletions
|
@ -54,8 +54,6 @@ class MCU_endstop:
|
|||
" rest_ticks=%u pin_value=%c", cq=cmd_queue)
|
||||
self._query_cmd = self._mcu.lookup_command(
|
||||
"endstop_query_state oid=%c", cq=cmd_queue)
|
||||
def home_prepare(self):
|
||||
pass
|
||||
def home_start(self, print_time, sample_time, sample_count, rest_time,
|
||||
triggered=True, notify=None):
|
||||
clock = self._mcu.print_time_to_clock(print_time)
|
||||
|
@ -112,8 +110,6 @@ class MCU_endstop:
|
|||
s.note_homing_end(did_trigger=did_trigger)
|
||||
if not did_trigger:
|
||||
raise self.TimeoutError("Timeout during endstop homing")
|
||||
def home_finalize(self):
|
||||
pass
|
||||
def query_endstop(self, print_time):
|
||||
clock = self._mcu.print_time_to_clock(print_time)
|
||||
if self._mcu.is_fileoutput():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue