🔧 Use multi-XYZ 'STOP' pins for MIN/MAX (#24855)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
ils15 2022-12-16 17:37:56 -03:00 committed by Scott Lahteine
parent cbb56e3536
commit 5198a55457

View File

@ -930,6 +930,12 @@
#define X2_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define X2_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(X2_MAX)
#undef X2_MAX_PIN
#if PIN_EXISTS(X2_STOP)
#define X2_MAX_PIN X2_STOP_PIN
#endif
#endif
#else #else
#ifndef X2_MIN_ENDSTOP_INVERTING #ifndef X2_MIN_ENDSTOP_INVERTING
#if X2_USE_ENDSTOP == _XMIN_ #if X2_USE_ENDSTOP == _XMIN_
@ -946,6 +952,12 @@
#define X2_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define X2_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(X2_MIN)
#undef X2_MIN_PIN
#if PIN_EXISTS(X2_STOP)
#define X2_MIN_PIN X2_STOP_PIN
#endif
#endif
#endif #endif
#ifndef X2_MAX_ENDSTOP_INVERTING #ifndef X2_MAX_ENDSTOP_INVERTING
#define X2_MAX_ENDSTOP_INVERTING false #define X2_MAX_ENDSTOP_INVERTING false
@ -975,6 +987,12 @@
#define Y2_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define Y2_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(Y2_MAX)
#undef Y2_MAX_PIN
#if PIN_EXISTS(Y2_STOP)
#define Y2_MAX_PIN Y2_STOP_PIN
#endif
#endif
#else #else
#ifndef Y2_MIN_ENDSTOP_INVERTING #ifndef Y2_MIN_ENDSTOP_INVERTING
#if Y2_USE_ENDSTOP == _XMIN_ #if Y2_USE_ENDSTOP == _XMIN_
@ -991,6 +1009,12 @@
#define Y2_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define Y2_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(Y2_MIN)
#undef Y2_MIN_PIN
#if PIN_EXISTS(Y2_STOP)
#define Y2_MIN_PIN Y2_STOP_PIN
#endif
#endif
#endif #endif
#ifndef Y2_MAX_ENDSTOP_INVERTING #ifndef Y2_MAX_ENDSTOP_INVERTING
#define Y2_MAX_ENDSTOP_INVERTING false #define Y2_MAX_ENDSTOP_INVERTING false
@ -1021,6 +1045,12 @@
#define Z2_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define Z2_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(Z2_MAX)
#undef Z2_MAX_PIN
#if PIN_EXISTS(Z2_STOP)
#define Z2_MAX_PIN Z2_STOP_PIN
#endif
#endif
#else #else
#ifndef Z2_MIN_ENDSTOP_INVERTING #ifndef Z2_MIN_ENDSTOP_INVERTING
#if Z2_USE_ENDSTOP == _XMIN_ #if Z2_USE_ENDSTOP == _XMIN_
@ -1037,6 +1067,12 @@
#define Z2_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define Z2_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(Z2_MIN)
#undef Z2_MIN_PIN
#if PIN_EXISTS(Z2_STOP)
#define Z2_MIN_PIN Z2_STOP_PIN
#endif
#endif
#endif #endif
#ifndef Z2_MAX_ENDSTOP_INVERTING #ifndef Z2_MAX_ENDSTOP_INVERTING
#define Z2_MAX_ENDSTOP_INVERTING false #define Z2_MAX_ENDSTOP_INVERTING false
@ -1062,6 +1098,12 @@
#define Z3_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define Z3_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(Z3_MAX)
#undef Z3_MAX_PIN
#if PIN_EXISTS(Z3_STOP)
#define Z3_MAX_PIN Z3_STOP_PIN
#endif
#endif
#else #else
#ifndef Z3_MIN_ENDSTOP_INVERTING #ifndef Z3_MIN_ENDSTOP_INVERTING
#if Z3_USE_ENDSTOP == _XMIN_ #if Z3_USE_ENDSTOP == _XMIN_
@ -1078,6 +1120,12 @@
#define Z3_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define Z3_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(Z3_MIN)
#undef Z3_MIN_PIN
#if PIN_EXISTS(Z3_STOP)
#define Z3_MIN_PIN Z3_STOP_PIN
#endif
#endif
#endif #endif
#ifndef Z3_MAX_ENDSTOP_INVERTING #ifndef Z3_MAX_ENDSTOP_INVERTING
#define Z3_MAX_ENDSTOP_INVERTING false #define Z3_MAX_ENDSTOP_INVERTING false
@ -1104,6 +1152,12 @@
#define Z4_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define Z4_MAX_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(Z4_MAX)
#undef Z4_MAX_PIN
#if PIN_EXISTS(Z4_STOP)
#define Z4_MAX_PIN Z4_STOP_PIN
#endif
#endif
#else #else
#ifndef Z4_MIN_ENDSTOP_INVERTING #ifndef Z4_MIN_ENDSTOP_INVERTING
#if Z4_USE_ENDSTOP == _XMIN_ #if Z4_USE_ENDSTOP == _XMIN_
@ -1120,6 +1174,12 @@
#define Z4_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING #define Z4_MIN_ENDSTOP_INVERTING Z_MAX_ENDSTOP_INVERTING
#endif #endif
#endif #endif
#if !PIN_EXISTS(Z4_MIN)
#undef Z4_MIN_PIN
#if PIN_EXISTS(Z4_STOP)
#define Z4_MIN_PIN Z4_STOP_PIN
#endif
#endif
#endif #endif
#ifndef Z4_MAX_ENDSTOP_INVERTING #ifndef Z4_MAX_ENDSTOP_INVERTING
#define Z4_MAX_ENDSTOP_INVERTING false #define Z4_MAX_ENDSTOP_INVERTING false