Skip to content

Commit 24f7f9e

Browse files
xBiohazardxernisv
authored andcommitted
✏️ Fix probe invert flag (MarlinFirmware#25282)
1 parent 6248c10 commit 24f7f9e

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
@@ -1782,15 +1782,15 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
17821782
#error "BLTOUCH requires DEACTIVATE_SERVOS_AFTER_MOVE to be to disabled. Please update your Configuration.h file."
17831783
#endif
17841784

1785-
#if HAS_INVERTED_PROBE
1785+
#if ENABLED(INVERTED_PROBE_STATE)
17861786
#if !Z_MIN_PROBE_ENDSTOP_INVERTING
17871787
#error "BLTOUCH requires Z_MIN_PROBE_ENDSTOP_INVERTING set to true."
17881788
#endif
17891789
#elif Z_MIN_PROBE_ENDSTOP_INVERTING
17901790
#error "BLTOUCH requires Z_MIN_PROBE_ENDSTOP_INVERTING set to false."
17911791
#endif
17921792
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
1793-
#if HAS_INVERTED_PROBE
1793+
#if ENABLED(INVERTED_PROBE_STATE)
17941794
#if !Z_MIN_ENDSTOP_INVERTING
17951795
#error "BLTOUCH requires Z_MIN_ENDSTOP_INVERTING set to true."
17961796
#endif
@@ -1822,15 +1822,15 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
18221822
#elif !HAS_RESUME_CONTINUE
18231823
#error "TOUCH_MI_PROBE currently requires an LCD controller or EMERGENCY_PARSER."
18241824
#endif
1825-
#if HAS_INVERTED_PROBE
1825+
#if ENABLED(INVERTED_PROBE_STATE)
18261826
#if !Z_MIN_PROBE_ENDSTOP_INVERTING
18271827
#error "TOUCH_MI_PROBE requires Z_MIN_PROBE_ENDSTOP_INVERTING set to true."
18281828
#endif
18291829
#elif Z_MIN_PROBE_ENDSTOP_INVERTING
18301830
#error "TOUCH_MI_PROBE requires Z_MIN_PROBE_ENDSTOP_INVERTING set to false."
18311831
#endif
18321832
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
1833-
#if HAS_INVERTED_PROBE
1833+
#if ENABLED(INVERTED_PROBE_STATE)
18341834
#if !Z_MIN_ENDSTOP_INVERTING
18351835
#error "TOUCH_MI_PROBE requires Z_MIN_ENDSTOP_INVERTING set to true."
18361836
#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)