homing: Move homing logic from manual_stepper.py to homing.py

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-03-29 13:34:25 -04:00
parent 38719c1359
commit 37a263c0b9
3 changed files with 55 additions and 53 deletions

View file

@ -195,10 +195,11 @@ class BLTouchEndstopWrapper:
for s, mcu_pos in self.start_mcu_pos:
if s.get_mcu_position() == mcu_pos:
raise self.printer.command_error("BLTouch failed to deploy")
def home_start(self, print_time, sample_time, sample_count, rest_time):
def home_start(self, print_time, sample_time, sample_count, rest_time,
triggered=True):
rest_time = min(rest_time, ENDSTOP_REST_TIME)
return self.mcu_endstop.home_start(print_time, sample_time,
sample_count, rest_time)
sample_count, rest_time, triggered)
def get_position_endstop(self):
return self.position_endstop
def set_output_mode(self, mode):