0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-06-24 07:51:49 +00:00

Add handling of BLTouch error state

This commit is contained in:
Scott Lahteine 2016-09-18 18:02:53 -05:00
parent c4dcfa254e
commit f38a33a5d8
4 changed files with 28 additions and 0 deletions

View file

@ -1881,6 +1881,11 @@ static void clean_up_after_endstop_or_probe_move() {
// Make room for probe
do_probe_raise(_Z_PROBE_DEPLOY_HEIGHT);
// Check BLTOUCH probe status for an error
#if ENABLED(BLTOUCH)
if (servo[Z_ENDSTOP_SERVO_NR].read() == BLTouchState_Error) { stop(); return true; }
#endif
#if ENABLED(Z_PROBE_SLED)
if (axis_unhomed_error(true, false, false)) { stop(); return true; }
#elif ENABLED(Z_PROBE_ALLEN_KEY)