Fix Touch-MI sanity checks (#14316)

This commit is contained in:
sensei73 2019-06-18 00:46:14 +02:00 committed by Scott Lahteine
parent 66d51272af
commit ce5f94c8f4

View file

@ -1051,9 +1051,9 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
* Touch-MI probe requirements * Touch-MI probe requirements
*/ */
#if ENABLED(TOUCH_MI_PROBE) #if ENABLED(TOUCH_MI_PROBE)
#if ENABLED(Z_SAFE_HOMING) #if DISABLED(Z_SAFE_HOMING)
#error "TOUCH_MI_PROBE requires Z_SAFE_HOMING." #error "TOUCH_MI_PROBE requires Z_SAFE_HOMING."
#elif ENABLED(TOUCH_MI_RETRACT_Z) #elif !defined(TOUCH_MI_RETRACT_Z)
#error "TOUCH_MI_PROBE requires TOUCH_MI_RETRACT_Z." #error "TOUCH_MI_PROBE requires TOUCH_MI_RETRACT_Z."
#elif defined(Z_AFTER_PROBING) #elif defined(Z_AFTER_PROBING)
#error "TOUCH_MI_PROBE requires Z_AFTER_PROBING to be disabled." #error "TOUCH_MI_PROBE requires Z_AFTER_PROBING to be disabled."