Skip to content

Commit c5ce3a3

Browse files
authored
Merge pull request #537 from stklcode/fix/523
fix STEPTEST macro to restore homing with dual Z endstops
2 parents 60b68f5 + 5eac0f6 commit c5ce3a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/module/stepper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ xyze_int8_t Stepper::count_direction{0};
274274
#define MINDIR(A) (count_direction[_AXIS(A)] < 0)
275275
#define MAXDIR(A) (count_direction[_AXIS(A)] > 0)
276276

277-
#define STEPTEST(A,M,I) TERN0(HAS_ ##A## ##I## _ ##M, !(TEST(endstops.state(), A## ##I## _ ##M) && M## DIR(A)) && !locked_ ##A## ##I## _motor)
277+
#define STEPTEST(A,M,I) TERN0(USE_##A##I##_##M, !(TEST(endstops.state(), A##I##_##M) && M## DIR(A)) && !locked_ ##A##I##_motor)
278278

279279
#define DUAL_ENDSTOP_APPLY_STEP(A,V) \
280280
if (separate_multi_axis) { \

0 commit comments

Comments
 (0)