Skip to content

Commit f246e0d

Browse files
committed
🔧 Fix X2/Y2 axis pins check
1 parent 4937a64 commit f246e0d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Marlin/src/inc/SanityCheck.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,13 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
239239
/**
240240
* Multiple Stepper Drivers Per Axis
241241
*/
242-
#define GOOD_AXIS_PINS(A) (HAS_##A##_ENABLE && HAS_##A##_STEP && HAS_##A##_DIR)
243-
#if HAS_X2_STEPPER && !GOOD_AXIS_PINS(X)
242+
#define GOOD_AXIS_PINS(A) PINS_EXIST(A##_ENABLE, A##_STEP, A##_DIR)
243+
#if HAS_X2_STEPPER && !GOOD_AXIS_PINS(X2)
244244
#error "If X2_DRIVER_TYPE is defined, then X2 ENABLE/STEP/DIR pins are also needed."
245245
#endif
246-
247-
#if HAS_DUAL_Y_STEPPERS && !GOOD_AXIS_PINS(Y)
246+
#if HAS_DUAL_Y_STEPPERS && !GOOD_AXIS_PINS(Y2)
248247
#error "If Y2_DRIVER_TYPE is defined, then Y2 ENABLE/STEP/DIR pins are also needed."
249248
#endif
250-
251249
#if HAS_Z_AXIS
252250
#if NUM_Z_STEPPERS >= 2 && !GOOD_AXIS_PINS(Z2)
253251
#error "If Z2_DRIVER_TYPE is defined, then Z2 ENABLE/STEP/DIR pins are also needed."

0 commit comments

Comments
 (0)