bltouch: Verify probe always deploys during a homing operation

Verify that there is always some movement during a probing operation.
This is normally done by the homing.py code (via its verify_movement
check), but that check may not be enabled when z_virtual_endstop is
used.  So, always enable the check in the bltouch.py code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-01-04 19:12:50 -05:00
parent 293366d033
commit 26e818d900
2 changed files with 12 additions and 1 deletions

View file

@ -78,7 +78,11 @@ class Homing:
else:
self.toolhead.set_position(movepos)
for mcu_endstop, name in endstops:
mcu_endstop.home_finalize()
try:
mcu_endstop.home_finalize()
except EndstopError as e:
if error is None:
error = str(e)
if error is not None:
raise EndstopError(error)
# Check if some movement occurred