🎨 Flags for homing directions
This commit is contained in:
committed by
Scott Lahteine
parent
0dae140080
commit
49771c4a9e
@@ -385,7 +385,7 @@
|
||||
// Assign endstop pins for boards with only 3 connectors
|
||||
//
|
||||
#ifdef X_STOP_PIN
|
||||
#if X_HOME_DIR < 0
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MIN_PIN X_STOP_PIN
|
||||
#ifndef X_MAX_PIN
|
||||
#define X_MAX_PIN -1
|
||||
@@ -396,14 +396,14 @@
|
||||
#define X_MIN_PIN -1
|
||||
#endif
|
||||
#endif
|
||||
#elif X_HOME_DIR < 0
|
||||
#elif X_HOME_TO_MIN
|
||||
#define X_STOP_PIN X_MIN_PIN
|
||||
#else
|
||||
#define X_STOP_PIN X_MAX_PIN
|
||||
#endif
|
||||
|
||||
#ifdef Y_STOP_PIN
|
||||
#if Y_HOME_DIR < 0
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MIN_PIN Y_STOP_PIN
|
||||
#ifndef Y_MAX_PIN
|
||||
#define Y_MAX_PIN -1
|
||||
@@ -414,14 +414,14 @@
|
||||
#define Y_MIN_PIN -1
|
||||
#endif
|
||||
#endif
|
||||
#elif Y_HOME_DIR < 0
|
||||
#elif Y_HOME_TO_MIN
|
||||
#define Y_STOP_PIN Y_MIN_PIN
|
||||
#else
|
||||
#define Y_STOP_PIN Y_MAX_PIN
|
||||
#endif
|
||||
|
||||
#ifdef Z_STOP_PIN
|
||||
#if Z_HOME_DIR < 0
|
||||
#if Z_HOME_TO_MIN
|
||||
#define Z_MIN_PIN Z_STOP_PIN
|
||||
#ifndef Z_MAX_PIN
|
||||
#define Z_MAX_PIN -1
|
||||
@@ -432,7 +432,7 @@
|
||||
#define Z_MIN_PIN -1
|
||||
#endif
|
||||
#endif
|
||||
#elif Z_HOME_DIR < 0
|
||||
#elif Z_HOME_TO_MIN
|
||||
#define Z_STOP_PIN Z_MIN_PIN
|
||||
#else
|
||||
#define Z_STOP_PIN Z_MAX_PIN
|
||||
@@ -489,34 +489,34 @@
|
||||
#undef Z_MIN_PIN
|
||||
#define Z_MIN_PIN -1
|
||||
#endif
|
||||
#if DISABLED(X_DUAL_ENDSTOPS) || X_HOME_DIR > 0
|
||||
#if DISABLED(X_DUAL_ENDSTOPS) || X_HOME_TO_MAX
|
||||
#undef X2_MIN_PIN
|
||||
#endif
|
||||
#if DISABLED(X_DUAL_ENDSTOPS) || X_HOME_DIR < 0
|
||||
#if DISABLED(X_DUAL_ENDSTOPS) || X_HOME_TO_MIN
|
||||
#undef X2_MAX_PIN
|
||||
#endif
|
||||
#if DISABLED(Y_DUAL_ENDSTOPS) || Y_HOME_DIR > 0
|
||||
#if DISABLED(Y_DUAL_ENDSTOPS) || Y_HOME_TO_MAX
|
||||
#undef Y2_MIN_PIN
|
||||
#endif
|
||||
#if DISABLED(Y_DUAL_ENDSTOPS) || Y_HOME_DIR < 0
|
||||
#if DISABLED(Y_DUAL_ENDSTOPS) || Y_HOME_TO_MIN
|
||||
#undef Y2_MAX_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || Z_HOME_DIR > 0
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || Z_HOME_TO_MAX
|
||||
#undef Z2_MIN_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || Z_HOME_DIR < 0
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || Z_HOME_TO_MIN
|
||||
#undef Z2_MAX_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 3 || Z_HOME_DIR > 0
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 3 || Z_HOME_TO_MAX
|
||||
#undef Z3_MIN_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 3 || Z_HOME_DIR < 0
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 3 || Z_HOME_TO_MIN
|
||||
#undef Z3_MAX_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 4 || Z_HOME_DIR > 0
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 4 || Z_HOME_TO_MAX
|
||||
#undef Z4_MIN_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 4 || Z_HOME_DIR < 0
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 4 || Z_HOME_TO_MIN
|
||||
#undef Z4_MAX_PIN
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user