Skip to content

Commit

Permalink
🩹 Fix PINS_EXIST usage
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 14, 2024
1 parent ce796ce commit b8ab2d4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Marlin/src/pins/pins_postprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@
#endif

// X2 auto-assignment will use up an E stepper, but not if it's chained
#if HAS_X2_STEPPER && !defined(X2_STEP_PIN) && !PIN_EXISTS(X2_CS_PIN)
#if HAS_X2_STEPPER && !defined(X2_STEP_PIN) && !PIN_EXISTS(X2_CS)
#define Y2_E_INDEX INCREMENT(X2_E_INDEX)
#else
#define Y2_E_INDEX X2_E_INDEX
Expand Down Expand Up @@ -810,7 +810,7 @@
#endif

// Y2 auto-assignment will use up an E stepper, but not if it's chained
#if HAS_Y2_STEPPER && !defined(Y2_STEP_PIN) && !PIN_EXISTS(Y2_CS_PIN)
#if HAS_Y2_STEPPER && !defined(Y2_STEP_PIN) && !PIN_EXISTS(Y2_CS)
#define Z2_E_INDEX INCREMENT(Y2_E_INDEX)
#else
#define Z2_E_INDEX Y2_E_INDEX
Expand Down Expand Up @@ -895,7 +895,7 @@
#endif

// Z2 auto-assignment will use up an E stepper, but not if it's chained
#if NUM_Z_STEPPERS >= 2 && !defined(Z2_STEP_PIN) && !PIN_EXISTS(Z2_CS_PIN)
#if NUM_Z_STEPPERS >= 2 && !defined(Z2_STEP_PIN) && !PIN_EXISTS(Z2_CS)
#define Z3_E_INDEX INCREMENT(Z2_E_INDEX)
#else
#define Z3_E_INDEX Z2_E_INDEX
Expand Down Expand Up @@ -980,7 +980,7 @@
#endif

// Z3 auto-assignment will use up an E stepper, but not if it's chained
#if NUM_Z_STEPPERS >= 3 && !defined(Z3_STEP_PIN) && !PIN_EXISTS(Z3_CS_PIN)
#if NUM_Z_STEPPERS >= 3 && !defined(Z3_STEP_PIN) && !PIN_EXISTS(Z3_CS)
#define Z4_E_INDEX INCREMENT(Z3_E_INDEX)
#else
#define Z4_E_INDEX Z3_E_INDEX
Expand Down Expand Up @@ -1065,7 +1065,7 @@
#endif

// Z4 auto-assignment will use up an E stepper, but not if it's chained
#if NUM_Z_STEPPERS >= 4 && !defined(Z4_STEP_PIN) && !PIN_EXISTS(Z4_CS_PIN)
#if NUM_Z_STEPPERS >= 4 && !defined(Z4_STEP_PIN) && !PIN_EXISTS(Z4_CS)
#define I_E_INDEX INCREMENT(Z4_E_INDEX)
#else
#define I_E_INDEX Z4_E_INDEX
Expand Down Expand Up @@ -1150,7 +1150,7 @@
#endif

// I auto-assignment will use up an E stepper, but not if it's chained
#if HAS_I_AXIS && !defined(I_STEP_PIN) && !PIN_EXISTS(I_CS_PIN)
#if HAS_I_AXIS && !defined(I_STEP_PIN) && !PIN_EXISTS(I_CS)
#define J_E_INDEX INCREMENT(I_E_INDEX)
#else
#define J_E_INDEX I_E_INDEX
Expand Down Expand Up @@ -1235,7 +1235,7 @@
#endif

// J auto-assignment will use up an E stepper, but not if it's chained
#if HAS_J_AXIS && !defined(J_STEP_PIN) && !PIN_EXISTS(J_CS_PIN)
#if HAS_J_AXIS && !defined(J_STEP_PIN) && !PIN_EXISTS(J_CS)
#define K_E_INDEX INCREMENT(J_E_INDEX)
#else
#define K_E_INDEX J_E_INDEX
Expand Down Expand Up @@ -1320,7 +1320,7 @@
#endif

// K auto-assignment will use up an E stepper, but not if it's chained
#if HAS_K_AXIS && !defined(K_STEP_PIN) && !PIN_EXISTS(K_CS_PIN)
#if HAS_K_AXIS && !defined(K_STEP_PIN) && !PIN_EXISTS(K_CS)
#define U_E_INDEX INCREMENT(K_E_INDEX)
#else
#define U_E_INDEX K_E_INDEX
Expand Down Expand Up @@ -1405,7 +1405,7 @@
#endif

// U auto-assignment will use up an E stepper, but not if it's chained
#if HAS_U_AXIS && !defined(U_STEP_PIN) && !PIN_EXISTS(U_CS_PIN)
#if HAS_U_AXIS && !defined(U_STEP_PIN) && !PIN_EXISTS(U_CS)
#define V_E_INDEX INCREMENT(U_E_INDEX)
#else
#define V_E_INDEX U_E_INDEX
Expand Down Expand Up @@ -1490,7 +1490,7 @@
#endif

// V auto-assignment will use up an E stepper, but not if it's chained
#if HAS_V_AXIS && !defined(V_STEP_PIN) && !PIN_EXISTS(V_CS_PIN)
#if HAS_V_AXIS && !defined(V_STEP_PIN) && !PIN_EXISTS(V_CS)
#define W_E_INDEX INCREMENT(V_E_INDEX)
#else
#define W_E_INDEX V_E_INDEX
Expand Down

0 comments on commit b8ab2d4

Please sign in to comment.