Skip to content

Commit b8ab2d4

Browse files
committed
🩹 Fix PINS_EXIST usage
1 parent ce796ce commit b8ab2d4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Marlin/src/pins/pins_postprocess.h

+10-10
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@
722722
#endif
723723

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

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

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)