homing: Catch the more generic CommandError during homing
Allow the low-level homing code to raise either a gcode.error or an EndstopError during a fault. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
committed by
KevinOConnor
parent
e9935e1a41
commit
67964e71f1
@@ -89,12 +89,12 @@ class ManualStepper:
|
||||
for mcu_endstop, name in endstops:
|
||||
try:
|
||||
mcu_endstop.home_finalize()
|
||||
except homing.EndstopError as e:
|
||||
except homing.CommandError as e:
|
||||
if error is None:
|
||||
error = str(e)
|
||||
self.sync_print_time()
|
||||
if error is not None:
|
||||
raise self.gcode.error(error)
|
||||
raise homing.CommandError(error)
|
||||
cmd_MANUAL_STEPPER_help = "Command a manually configured stepper"
|
||||
def cmd_MANUAL_STEPPER(self, params):
|
||||
if 'ENABLE' in params:
|
||||
|
||||
Reference in New Issue
Block a user