Browse Source

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

ellensp 3 years ago
parent
commit
7d7439c4b6
No account linked to committer's email address
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      Marlin/src/inc/SanityCheck.h

+ 7
- 3
Marlin/src/inc/SanityCheck.h View File

@@ -1574,10 +1574,14 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
1574 1574
       #else
1575 1575
         #define _IS_5V_TOLERANT(P) 1 // Assume 5V tolerance
1576 1576
       #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
1579 1581
       #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
1581 1585
       #endif
1582 1586
       #undef _IS_5V_TOLERANT
1583 1587
       #undef _5V

Loading…
Cancel
Save