Skip to content

Commit

Permalink
🔧 Allow for no STOP pin
Browse files Browse the repository at this point in the history
Co-Authored-By: DerAndere <26200979+DerAndere1@users.noreply.github.com>
  • Loading branch information
thinkyhead and DerAndere1 committed Jan 23, 2024
1 parent d79bcef commit 5ed6bf6
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions Marlin/src/pins/pins_postprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -515,12 +515,12 @@
#ifdef X_STOP_PIN
#if X_HOME_TO_MIN
#define X_MIN_PIN X_STOP_PIN
#else
#elif X_HOME_TO_MAX
#define X_MAX_PIN X_STOP_PIN
#endif
#elif X_HOME_TO_MIN
#define X_STOP_PIN X_MIN_PIN
#else
#elif X_HOME_TO_MAX
#define X_STOP_PIN X_MAX_PIN
#endif
#if !defined(X2_STOP_PIN) && ENABLED(X_DUAL_ENDSTOPS) && PIN_EXISTS(X_STOP)
Expand All @@ -532,12 +532,12 @@
#ifdef Y_STOP_PIN
#if Y_HOME_TO_MIN
#define Y_MIN_PIN Y_STOP_PIN
#else
#elif Y_HOME_TO_MAX
#define Y_MAX_PIN Y_STOP_PIN
#endif
#elif Y_HOME_TO_MIN
#define Y_STOP_PIN Y_MIN_PIN
#else
#elif X_HOME_TO_MAX
#define Y_STOP_PIN Y_MAX_PIN
#endif
#if !defined(Y2_STOP_PIN) && ENABLED(Y_DUAL_ENDSTOPS) && PIN_EXISTS(Y_STOP)
Expand All @@ -549,12 +549,12 @@
#ifdef Z_STOP_PIN
#if Z_HOME_TO_MIN
#define Z_MIN_PIN Z_STOP_PIN
#else
#elif Z_HOME_TO_MAX
#define Z_MAX_PIN Z_STOP_PIN
#endif
#elif Z_HOME_TO_MIN
#define Z_STOP_PIN Z_MIN_PIN
#else
#elif Z_HOME_TO_MAX
#define Z_STOP_PIN Z_MAX_PIN
#endif
#if ENABLED(Z_MULTI_ENDSTOPS) && PIN_EXISTS(Z_STOP)
Expand All @@ -574,12 +574,12 @@
#ifdef I_STOP_PIN
#if I_HOME_TO_MIN
#define I_MIN_PIN I_STOP_PIN
#else
#elif I_HOME_TO_MAX
#define I_MAX_PIN I_STOP_PIN
#endif
#elif I_HOME_TO_MIN
#define I_STOP_PIN I_MIN_PIN
#else
#elif I_HOME_TO_MAX
#define I_STOP_PIN I_MAX_PIN
#endif
#endif
Expand All @@ -588,12 +588,12 @@
#ifdef J_STOP_PIN
#if J_HOME_TO_MIN
#define J_MIN_PIN J_STOP_PIN
#else
#elif J_HOME_TO_MAX
#define J_MAX_PIN J_STOP_PIN
#endif
#elif J_HOME_TO_MIN
#define J_STOP_PIN J_MIN_PIN
#else
#elif J_HOME_TO_MAX
#define J_STOP_PIN J_MAX_PIN
#endif
#endif
Expand All @@ -602,12 +602,12 @@
#ifdef K_STOP_PIN
#if K_HOME_TO_MIN
#define K_MIN_PIN K_STOP_PIN
#else
#elif K_HOME_TO_MAX
#define K_MAX_PIN K_STOP_PIN
#endif
#elif K_HOME_TO_MIN
#define K_STOP_PIN K_MIN_PIN
#else
#elif K_HOME_TO_MAX
#define K_STOP_PIN K_MAX_PIN
#endif
#endif
Expand All @@ -616,12 +616,12 @@
#ifdef U_STOP_PIN
#if U_HOME_TO_MIN
#define U_MIN_PIN U_STOP_PIN
#else
#elif U_HOME_TO_MAX
#define U_MAX_PIN U_STOP_PIN
#endif
#elif U_HOME_TO_MIN
#define U_STOP_PIN U_MIN_PIN
#else
#elif U_HOME_TO_MAX
#define U_STOP_PIN U_MAX_PIN
#endif
#endif
Expand All @@ -630,12 +630,12 @@
#ifdef V_STOP_PIN
#if V_HOME_TO_MIN
#define V_MIN_PIN V_STOP_PIN
#else
#elif V_HOME_TO_MAX
#define V_MAX_PIN V_STOP_PIN
#endif
#elif V_HOME_TO_MIN
#define V_STOP_PIN V_MIN_PIN
#else
#elif V_HOME_TO_MAX
#define V_STOP_PIN V_MAX_PIN
#endif
#endif
Expand All @@ -644,12 +644,12 @@
#ifdef W_STOP_PIN
#if W_HOME_TO_MIN
#define W_MIN_PIN W_STOP_PIN
#else
#elif W_HOME_TO_MAX
#define W_MAX_PIN W_STOP_PIN
#endif
#elif W_HOME_TO_MIN
#define W_STOP_PIN W_MIN_PIN
#else
#elif W_HOME_TO_MAX
#define W_STOP_PIN W_MAX_PIN
#endif
#endif
Expand Down

0 comments on commit 5ed6bf6

Please sign in to comment.