Browse Source

🚨 Fix BLTouch 5V pin tolerance checks (#23823)

FB4S_WIFI
ellensp 3 years ago
committed by Scott Lahteine
parent
commit
fbfe0642b6
  1. 6
      Marlin/src/inc/SanityCheck.h

6
Marlin/src/inc/SanityCheck.h

@ -1574,11 +1574,15 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#else #else
#define _IS_5V_TOLERANT(P) 1 // Assume 5V tolerance #define _IS_5V_TOLERANT(P) 1 // Assume 5V tolerance
#endif #endif
#if USES_Z_MIN_PROBE_PIN && !_IS_5V_TOLERANT(Z_MIN_PROBE_PIN) #if USES_Z_MIN_PROBE_PIN
#if !_IS_5V_TOLERANT(Z_MIN_PROBE_PIN)
#error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PROBE_PIN." #error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PROBE_PIN."
#endif
#elif !_IS_5V_TOLERANT(Z_MIN_PIN) #elif !_IS_5V_TOLERANT(Z_MIN_PIN)
#if !MB(CHITU3D_V6)
#error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PIN." #error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PIN."
#endif #endif
#endif
#undef _IS_5V_TOLERANT #undef _IS_5V_TOLERANT
#undef _5V #undef _5V
#elif NONE(ONBOARD_ENDSTOPPULLUPS, ENDSTOPPULLUPS, ENDSTOPPULLUP_ZMIN, ENDSTOPPULLUP_ZMIN_PROBE) #elif NONE(ONBOARD_ENDSTOPPULLUPS, ENDSTOPPULLUPS, ENDSTOPPULLUP_ZMIN, ENDSTOPPULLUP_ZMIN_PROBE)

Loading…
Cancel
Save