🎨 Various multi-axis patches (#22823)
This commit is contained in:
committed by
Scott Lahteine
parent
3deb54d0fd
commit
2c30b75268
@@ -464,11 +464,19 @@
|
||||
#ifdef I_STOP_PIN
|
||||
#if I_HOME_TO_MIN
|
||||
#define I_MIN_PIN I_STOP_PIN
|
||||
#define I_MAX_PIN -1
|
||||
#ifndef I_MAX_PIN
|
||||
#define I_MAX_PIN -1
|
||||
#endif
|
||||
#else
|
||||
#define I_MIN_PIN -1
|
||||
#define I_MAX_PIN I_STOP_PIN
|
||||
#ifndef I_MIN_PIN
|
||||
#define I_MIN_PIN -1
|
||||
#endif
|
||||
#endif
|
||||
#elif I_HOME_TO_MIN
|
||||
#define I_STOP_PIN I_MIN_PIN
|
||||
#else
|
||||
#define I_STOP_PIN I_MAX_PIN
|
||||
#endif
|
||||
#else
|
||||
#undef I_MIN_PIN
|
||||
@@ -479,11 +487,19 @@
|
||||
#ifdef J_STOP_PIN
|
||||
#if J_HOME_TO_MIN
|
||||
#define J_MIN_PIN J_STOP_PIN
|
||||
#define J_MAX_PIN -1
|
||||
#ifndef J_MAX_PIN
|
||||
#define J_MAX_PIN -1
|
||||
#endif
|
||||
#else
|
||||
#define J_MIN_PIN -1
|
||||
#define J_MAX_PIN J_STOP_PIN
|
||||
#ifndef J_MIN_PIN
|
||||
#define J_MIN_PIN -1
|
||||
#endif
|
||||
#endif
|
||||
#elif J_HOME_TO_MIN
|
||||
#define J_STOP_PIN J_MIN_PIN
|
||||
#else
|
||||
#define J_STOP_PIN J_MAX_PIN
|
||||
#endif
|
||||
#else
|
||||
#undef J_MIN_PIN
|
||||
@@ -494,11 +510,19 @@
|
||||
#ifdef K_STOP_PIN
|
||||
#if K_HOME_TO_MIN
|
||||
#define K_MIN_PIN K_STOP_PIN
|
||||
#define K_MAX_PIN -1
|
||||
#ifndef K_MAX_PIN
|
||||
#define K_MAX_PIN -1
|
||||
#endif
|
||||
#else
|
||||
#define K_MIN_PIN -1
|
||||
#define K_MAX_PIN K_STOP_PIN
|
||||
#ifndef K_MIN_PIN
|
||||
#define K_MIN_PIN -1
|
||||
#endif
|
||||
#endif
|
||||
#elif K_HOME_TO_MIN
|
||||
#define K_STOP_PIN K_MIN_PIN
|
||||
#else
|
||||
#define K_STOP_PIN K_MAX_PIN
|
||||
#endif
|
||||
#else
|
||||
#undef K_MIN_PIN
|
||||
|
Reference in New Issue
Block a user