Conditionals tweak
This commit is contained in:
parent
3358caed14
commit
ce2b4bc20c
@ -920,13 +920,13 @@
|
||||
#endif
|
||||
|
||||
// Endstops and bed probe
|
||||
#define HAS_STOP_TEST(A,M) (PIN_EXISTS(A##_##M) && !IS_X2_ENDSTOP(A,M) && !IS_Y2_ENDSTOP(A,M) && !IS_Z2_OR_PROBE(A,M))
|
||||
#define HAS_X_MIN HAS_STOP_TEST(X,MIN)
|
||||
#define HAS_X_MAX HAS_STOP_TEST(X,MAX)
|
||||
#define HAS_Y_MIN HAS_STOP_TEST(Y,MIN)
|
||||
#define HAS_Y_MAX HAS_STOP_TEST(Y,MAX)
|
||||
#define HAS_Z_MIN HAS_STOP_TEST(Z,MIN)
|
||||
#define HAS_Z_MAX HAS_STOP_TEST(Z,MAX)
|
||||
#define _HAS_STOP(A,M) (PIN_EXISTS(A##_##M) && !IS_X2_ENDSTOP(A,M) && !IS_Y2_ENDSTOP(A,M) && !IS_Z2_OR_PROBE(A,M))
|
||||
#define HAS_X_MIN _HAS_STOP(X,MIN)
|
||||
#define HAS_X_MAX _HAS_STOP(X,MAX)
|
||||
#define HAS_Y_MIN _HAS_STOP(Y,MIN)
|
||||
#define HAS_Y_MAX _HAS_STOP(Y,MAX)
|
||||
#define HAS_Z_MIN _HAS_STOP(Z,MIN)
|
||||
#define HAS_Z_MAX _HAS_STOP(Z,MAX)
|
||||
#define HAS_X2_MIN (PIN_EXISTS(X2_MIN))
|
||||
#define HAS_X2_MAX (PIN_EXISTS(X2_MAX))
|
||||
#define HAS_Y2_MIN (PIN_EXISTS(Y2_MIN))
|
||||
|
Loading…
Reference in New Issue
Block a user