Skip to content

Commit 7d7439c

Browse files
authored
🚨 Fix BLTouch 5V pin tolerance checks (MarlinFirmware#23823)
1 parent 6b7868d commit 7d7439c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Marlin/src/inc/SanityCheck.h

+7-3
Original file line numberDiff line numberDiff line change
@@ -1574,10 +1574,14 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
15741574
#else
15751575
#define _IS_5V_TOLERANT(P) 1 // Assume 5V tolerance
15761576
#endif
1577-
#if USES_Z_MIN_PROBE_PIN && !_IS_5V_TOLERANT(Z_MIN_PROBE_PIN)
1578-
#error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PROBE_PIN."
1577+
#if USES_Z_MIN_PROBE_PIN
1578+
#if !_IS_5V_TOLERANT(Z_MIN_PROBE_PIN)
1579+
#error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PROBE_PIN."
1580+
#endif
15791581
#elif !_IS_5V_TOLERANT(Z_MIN_PIN)
1580-
#error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PIN."
1582+
#if !MB(CHITU3D_V6)
1583+
#error "BLTOUCH_SET_5V_MODE is not compatible with the Z_MIN_PIN."
1584+
#endif
15811585
#endif
15821586
#undef _IS_5V_TOLERANT
15831587
#undef _5V

0 commit comments

Comments
 (0)