Skip to content

Commit

Permalink
Allow undefined [XYZ]_ENABLE_PIN (for sensitive pins) (#21801)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesweisbach authored May 6, 2021
1 parent cbcc6ef commit 857976b
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions Marlin/src/pins/sensitive_pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,13 @@
#else
#define _X_MS3
#endif
#if PIN_EXISTS(X_ENABLE)
#define _X_ENABLE_PIN X_ENABLE_PIN,
#else
#define _X_ENABLE_PIN
#endif

#define _X_PINS X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, _X_MIN _X_MAX _X_MS1 _X_MS2 _X_MS3 _X_CS
#define _X_PINS X_STEP_PIN, X_DIR_PIN, _X_ENABLE_PIN _X_MIN _X_MAX _X_MS1 _X_MS2 _X_MS3 _X_CS

#if PIN_EXISTS(Y_MIN)
#define _Y_MIN Y_MIN_PIN,
Expand Down Expand Up @@ -88,8 +93,13 @@
#else
#define _Y_MS3
#endif
#if PIN_EXISTS(Y_ENABLE)
#define _Y_ENABLE_PIN Y_ENABLE_PIN,
#else
#define _Y_ENABLE_PIN
#endif

#define _Y_PINS Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, _Y_MIN _Y_MAX _Y_MS1 _Y_MS2 _Y_MS3 _Y_CS
#define _Y_PINS Y_STEP_PIN, Y_DIR_PIN, _Y_ENABLE_PIN _Y_MIN _Y_MAX _Y_MS1 _Y_MS2 _Y_MS3 _Y_CS

#if PIN_EXISTS(Z_MIN)
#define _Z_MIN Z_MIN_PIN,
Expand Down Expand Up @@ -121,8 +131,13 @@
#else
#define _Z_MS3
#endif
#if PIN_EXISTS(Z_ENABLE)
#define _Z_ENABLE_PIN Z_ENABLE_PIN,
#else
#define _Z_ENABLE_PIN
#endif

#define _Z_PINS Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, _Z_MIN _Z_MAX _Z_MS1 _Z_MS2 _Z_MS3 _Z_CS
#define _Z_PINS Z_STEP_PIN, Z_DIR_PIN, _Z_ENABLE_PIN _Z_MIN _Z_MAX _Z_MS1 _Z_MS2 _Z_MS3 _Z_CS

//
// Extruder Chip Select, Digital Micro-steps
Expand Down

0 comments on commit 857976b

Please sign in to comment.