mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-22 17:52:57 +00:00
🩹 Config-related preparations (2)
This commit is contained in:
parent
ed7f3b21c0
commit
43d9d1ce1b
1 changed files with 1 additions and 1 deletions
|
@ -2419,7 +2419,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PCAT(P) P##_PIN
|
#define PCAT(P) P##_PIN
|
||||||
#define NEED_HIT_STATE(P) (USE_##P || (PIN_EXISTS(P##_PIN) && ((defined(X2_STOP_PIN) && X2_STOP_PIN == PCAT(P)) || (defined(Y2_STOP_PIN) && Y2_STOP_PIN == PCAT(P)) || (defined(Z2_STOP_PIN) && Z2_STOP_PIN == PCAT(P)) || (defined(Z3_STOP_PIN) && Z3_STOP_PIN == PCAT(P)) || (defined(Z4_STOP_PIN) && Z4_STOP_PIN == PCAT(P)))))
|
#define NEED_HIT_STATE(P) (USE_##P || (PIN_EXISTS(P) && ((defined(X2_STOP_PIN) && X2_STOP_PIN == PCAT(P)) || (defined(Y2_STOP_PIN) && Y2_STOP_PIN == PCAT(P)) || (defined(Z2_STOP_PIN) && Z2_STOP_PIN == PCAT(P)) || (defined(Z3_STOP_PIN) && Z3_STOP_PIN == PCAT(P)) || (defined(Z4_STOP_PIN) && Z4_STOP_PIN == PCAT(P)))))
|
||||||
#if !NEED_HIT_STATE(X_MIN)
|
#if !NEED_HIT_STATE(X_MIN)
|
||||||
#undef X_MIN_ENDSTOP_HIT_STATE
|
#undef X_MIN_ENDSTOP_HIT_STATE
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue