Skip to content

Commit dd3711d

Browse files
committed
🩹 Fixup USE_Z_MIN conditions
Do not define USE_Z_MIN when using USE_PROBE_FOR_Z_HOMING and not Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN. HAS_Z_MIN_STATE should still be defined in this case.
1 parent c476e62 commit dd3711d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/inc/Conditionals_post.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1992,13 +1992,13 @@
19921992
#define HAS_Y_STATE 1
19931993
#endif
19941994

1995-
#if _USE_STOP(Z,,MIN,ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN))
1995+
#if _USE_STOP(Z,,MIN,ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)) && !(ENABLED(USE_PROBE_FOR_Z_HOMING) && DISABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN))
19961996
#define USE_Z_MIN 1
19971997
#endif
19981998
#if _USE_STOP(Z,,MAX,)
19991999
#define USE_Z_MAX 1
20002000
#endif
2001-
#if _HAS_STATE(Z,,MIN)
2001+
#if _HAS_STATE(Z,,MIN) || ENABLED(USE_PROBE_FOR_Z_HOMING)
20022002
#define HAS_Z_MIN_STATE 1
20032003
#endif
20042004
#if _HAS_STATE(Z,,MAX)

0 commit comments

Comments
 (0)