Skip to content

Commit

Permalink
🚨 Fix BLTouch 5V pin tolerance checks (MarlinFirmware#23823)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and Omkar Dhekne committed Mar 25, 2024
1 parent 5d72426 commit 00f746a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -1574,10 +1574,14 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#else
#define _IS_5V_TOLERANT(P) 1 // Assume 5V tolerance
#endif
#if USES_Z_MIN_PROBE_PIN && !_IS_5V_TOLERANT(Z_MIN_PROBE_PIN)
#error "BLTOUCH_SET_5V_MODE is not compatible with the 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."
#endif
#elif !_IS_5V_TOLERANT(Z_MIN_PIN)
#error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PIN."
#if !MB(CHITU3D_V6)
#error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PIN."
#endif
#endif
#undef _IS_5V_TOLERANT
#undef _5V
Expand Down

0 comments on commit 00f746a

Please sign in to comment.