mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 15:14:00 -06:00
mcu: Raise an error on a failed home_wait() call
Raise a printer.command_error exception if a home_wait() call fails. This makes it easier to support future types of homing errors. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
4709f1fad5
commit
37482178b5
4 changed files with 24 additions and 14 deletions
|
@ -116,7 +116,11 @@ class BLTouchEndstopWrapper:
|
|||
self.mcu_endstop.home_start(self.action_end_time, ENDSTOP_SAMPLE_TIME,
|
||||
ENDSTOP_SAMPLE_COUNT, ENDSTOP_REST_TIME,
|
||||
triggered=triggered)
|
||||
trigger_time = self.mcu_endstop.home_wait(self.action_end_time + 0.100)
|
||||
try:
|
||||
trigger_time = self.mcu_endstop.home_wait(
|
||||
self.action_end_time + 0.100)
|
||||
except self.printer.command_error as e:
|
||||
return False
|
||||
return trigger_time > 0.
|
||||
def raise_probe(self):
|
||||
self.sync_mcu_print_time()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue