🔧 Allow for no STOP pin

Co-Authored-By: DerAndere <26200979+DerAndere1@users.noreply.github.com>
This commit is contained in:
Scott Lahteine 2024-01-23 15:44:51 -06:00
parent d79bcef802
commit 5ed6bf65ba

View file

@ -515,12 +515,12 @@
#ifdef X_STOP_PIN #ifdef X_STOP_PIN
#if X_HOME_TO_MIN #if X_HOME_TO_MIN
#define X_MIN_PIN X_STOP_PIN #define X_MIN_PIN X_STOP_PIN
#else #elif X_HOME_TO_MAX
#define X_MAX_PIN X_STOP_PIN #define X_MAX_PIN X_STOP_PIN
#endif #endif
#elif X_HOME_TO_MIN #elif X_HOME_TO_MIN
#define X_STOP_PIN X_MIN_PIN #define X_STOP_PIN X_MIN_PIN
#else #elif X_HOME_TO_MAX
#define X_STOP_PIN X_MAX_PIN #define X_STOP_PIN X_MAX_PIN
#endif #endif
#if !defined(X2_STOP_PIN) && ENABLED(X_DUAL_ENDSTOPS) && PIN_EXISTS(X_STOP) #if !defined(X2_STOP_PIN) && ENABLED(X_DUAL_ENDSTOPS) && PIN_EXISTS(X_STOP)
@ -532,12 +532,12 @@
#ifdef Y_STOP_PIN #ifdef Y_STOP_PIN
#if Y_HOME_TO_MIN #if Y_HOME_TO_MIN
#define Y_MIN_PIN Y_STOP_PIN #define Y_MIN_PIN Y_STOP_PIN
#else #elif Y_HOME_TO_MAX
#define Y_MAX_PIN Y_STOP_PIN #define Y_MAX_PIN Y_STOP_PIN
#endif #endif
#elif Y_HOME_TO_MIN #elif Y_HOME_TO_MIN
#define Y_STOP_PIN Y_MIN_PIN #define Y_STOP_PIN Y_MIN_PIN
#else #elif X_HOME_TO_MAX
#define Y_STOP_PIN Y_MAX_PIN #define Y_STOP_PIN Y_MAX_PIN
#endif #endif
#if !defined(Y2_STOP_PIN) && ENABLED(Y_DUAL_ENDSTOPS) && PIN_EXISTS(Y_STOP) #if !defined(Y2_STOP_PIN) && ENABLED(Y_DUAL_ENDSTOPS) && PIN_EXISTS(Y_STOP)
@ -549,12 +549,12 @@
#ifdef Z_STOP_PIN #ifdef Z_STOP_PIN
#if Z_HOME_TO_MIN #if Z_HOME_TO_MIN
#define Z_MIN_PIN Z_STOP_PIN #define Z_MIN_PIN Z_STOP_PIN
#else #elif Z_HOME_TO_MAX
#define Z_MAX_PIN Z_STOP_PIN #define Z_MAX_PIN Z_STOP_PIN
#endif #endif
#elif Z_HOME_TO_MIN #elif Z_HOME_TO_MIN
#define Z_STOP_PIN Z_MIN_PIN #define Z_STOP_PIN Z_MIN_PIN
#else #elif Z_HOME_TO_MAX
#define Z_STOP_PIN Z_MAX_PIN #define Z_STOP_PIN Z_MAX_PIN
#endif #endif
#if ENABLED(Z_MULTI_ENDSTOPS) && PIN_EXISTS(Z_STOP) #if ENABLED(Z_MULTI_ENDSTOPS) && PIN_EXISTS(Z_STOP)
@ -574,12 +574,12 @@
#ifdef I_STOP_PIN #ifdef I_STOP_PIN
#if I_HOME_TO_MIN #if I_HOME_TO_MIN
#define I_MIN_PIN I_STOP_PIN #define I_MIN_PIN I_STOP_PIN
#else #elif I_HOME_TO_MAX
#define I_MAX_PIN I_STOP_PIN #define I_MAX_PIN I_STOP_PIN
#endif #endif
#elif I_HOME_TO_MIN #elif I_HOME_TO_MIN
#define I_STOP_PIN I_MIN_PIN #define I_STOP_PIN I_MIN_PIN
#else #elif I_HOME_TO_MAX
#define I_STOP_PIN I_MAX_PIN #define I_STOP_PIN I_MAX_PIN
#endif #endif
#endif #endif
@ -588,12 +588,12 @@
#ifdef J_STOP_PIN #ifdef J_STOP_PIN
#if J_HOME_TO_MIN #if J_HOME_TO_MIN
#define J_MIN_PIN J_STOP_PIN #define J_MIN_PIN J_STOP_PIN
#else #elif J_HOME_TO_MAX
#define J_MAX_PIN J_STOP_PIN #define J_MAX_PIN J_STOP_PIN
#endif #endif
#elif J_HOME_TO_MIN #elif J_HOME_TO_MIN
#define J_STOP_PIN J_MIN_PIN #define J_STOP_PIN J_MIN_PIN
#else #elif J_HOME_TO_MAX
#define J_STOP_PIN J_MAX_PIN #define J_STOP_PIN J_MAX_PIN
#endif #endif
#endif #endif
@ -602,12 +602,12 @@
#ifdef K_STOP_PIN #ifdef K_STOP_PIN
#if K_HOME_TO_MIN #if K_HOME_TO_MIN
#define K_MIN_PIN K_STOP_PIN #define K_MIN_PIN K_STOP_PIN
#else #elif K_HOME_TO_MAX
#define K_MAX_PIN K_STOP_PIN #define K_MAX_PIN K_STOP_PIN
#endif #endif
#elif K_HOME_TO_MIN #elif K_HOME_TO_MIN
#define K_STOP_PIN K_MIN_PIN #define K_STOP_PIN K_MIN_PIN
#else #elif K_HOME_TO_MAX
#define K_STOP_PIN K_MAX_PIN #define K_STOP_PIN K_MAX_PIN
#endif #endif
#endif #endif
@ -616,12 +616,12 @@
#ifdef U_STOP_PIN #ifdef U_STOP_PIN
#if U_HOME_TO_MIN #if U_HOME_TO_MIN
#define U_MIN_PIN U_STOP_PIN #define U_MIN_PIN U_STOP_PIN
#else #elif U_HOME_TO_MAX
#define U_MAX_PIN U_STOP_PIN #define U_MAX_PIN U_STOP_PIN
#endif #endif
#elif U_HOME_TO_MIN #elif U_HOME_TO_MIN
#define U_STOP_PIN U_MIN_PIN #define U_STOP_PIN U_MIN_PIN
#else #elif U_HOME_TO_MAX
#define U_STOP_PIN U_MAX_PIN #define U_STOP_PIN U_MAX_PIN
#endif #endif
#endif #endif
@ -630,12 +630,12 @@
#ifdef V_STOP_PIN #ifdef V_STOP_PIN
#if V_HOME_TO_MIN #if V_HOME_TO_MIN
#define V_MIN_PIN V_STOP_PIN #define V_MIN_PIN V_STOP_PIN
#else #elif V_HOME_TO_MAX
#define V_MAX_PIN V_STOP_PIN #define V_MAX_PIN V_STOP_PIN
#endif #endif
#elif V_HOME_TO_MIN #elif V_HOME_TO_MIN
#define V_STOP_PIN V_MIN_PIN #define V_STOP_PIN V_MIN_PIN
#else #elif V_HOME_TO_MAX
#define V_STOP_PIN V_MAX_PIN #define V_STOP_PIN V_MAX_PIN
#endif #endif
#endif #endif
@ -644,12 +644,12 @@
#ifdef W_STOP_PIN #ifdef W_STOP_PIN
#if W_HOME_TO_MIN #if W_HOME_TO_MIN
#define W_MIN_PIN W_STOP_PIN #define W_MIN_PIN W_STOP_PIN
#else #elif W_HOME_TO_MAX
#define W_MAX_PIN W_STOP_PIN #define W_MAX_PIN W_STOP_PIN
#endif #endif
#elif W_HOME_TO_MIN #elif W_HOME_TO_MIN
#define W_STOP_PIN W_MIN_PIN #define W_STOP_PIN W_MIN_PIN
#else #elif W_HOME_TO_MAX
#define W_STOP_PIN W_MAX_PIN #define W_STOP_PIN W_MAX_PIN
#endif #endif
#endif #endif