Skip to content

Commit eebcb25

Browse files
xBiohazardxTracy Spiva
authored and
Tracy Spiva
committed
✏️ Fix probe invert flag (MarlinFirmware#25282)
1 parent b9a1ed5 commit eebcb25

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Marlin/src/inc/SanityCheck.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1808,15 +1808,15 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
18081808
#error "BLTOUCH requires DEACTIVATE_SERVOS_AFTER_MOVE to be to disabled. Please update your Configuration.h file."
18091809
#endif
18101810

1811-
#if HAS_INVERTED_PROBE
1811+
#if ENABLED(INVERTED_PROBE_STATE)
18121812
#if !Z_MIN_PROBE_ENDSTOP_INVERTING
18131813
#error "BLTOUCH requires Z_MIN_PROBE_ENDSTOP_INVERTING set to true."
18141814
#endif
18151815
#elif Z_MIN_PROBE_ENDSTOP_INVERTING
18161816
#error "BLTOUCH requires Z_MIN_PROBE_ENDSTOP_INVERTING set to false."
18171817
#endif
18181818
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
1819-
#if HAS_INVERTED_PROBE
1819+
#if ENABLED(INVERTED_PROBE_STATE)
18201820
#if !Z_MIN_ENDSTOP_INVERTING
18211821
#error "BLTOUCH requires Z_MIN_ENDSTOP_INVERTING set to true."
18221822
#endif
@@ -1848,15 +1848,15 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
18481848
#elif !HAS_RESUME_CONTINUE
18491849
#error "TOUCH_MI_PROBE currently requires an LCD controller or EMERGENCY_PARSER."
18501850
#endif
1851-
#if HAS_INVERTED_PROBE
1851+
#if ENABLED(INVERTED_PROBE_STATE)
18521852
#if !Z_MIN_PROBE_ENDSTOP_INVERTING
18531853
#error "TOUCH_MI_PROBE requires Z_MIN_PROBE_ENDSTOP_INVERTING set to true."
18541854
#endif
18551855
#elif Z_MIN_PROBE_ENDSTOP_INVERTING
18561856
#error "TOUCH_MI_PROBE requires Z_MIN_PROBE_ENDSTOP_INVERTING set to false."
18571857
#endif
18581858
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
1859-
#if HAS_INVERTED_PROBE
1859+
#if ENABLED(INVERTED_PROBE_STATE)
18601860
#if !Z_MIN_ENDSTOP_INVERTING
18611861
#error "TOUCH_MI_PROBE requires Z_MIN_ENDSTOP_INVERTING set to true."
18621862
#endif

Marlin/src/pins/ramps/pins_K8400.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#define Y_STOP_PIN 14
5252

5353
#if EITHER(BLTOUCH, TOUCH_MI_PROBE)
54-
#define HAS_INVERTED_PROBE
54+
#define INVERTED_PROBE_STATE
5555
#endif
5656

5757
#include "pins_3DRAG.h" // ... RAMPS

0 commit comments

Comments
 (0)