Skip to content

Commit

Permalink
🐛 Fix Babystepping for CoreXZ
Browse files Browse the repository at this point in the history
Fixes #19988
  • Loading branch information
thinkyhead committed May 8, 2023
1 parent d3ee4ee commit f207177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3670,7 +3670,7 @@ void Stepper::report_positions() {

case Y_AXIS:
#if CORE_IS_XY
BABYSTEP_CORE(X, Y, !direction, 1, (CORESIGN(1)>0));
BABYSTEP_CORE(X, Y, direction, 0, (CORESIGN(1)>0));
#elif CORE_IS_YZ
BABYSTEP_CORE(Y, Z, direction, 0, (CORESIGN(1)<0));
#else
Expand All @@ -3683,7 +3683,7 @@ void Stepper::report_positions() {
case Z_AXIS: {

#if CORE_IS_XZ
BABYSTEP_CORE(X, Z, direction, BABYSTEP_INVERT_Z, (CORESIGN(1)<0));
BABYSTEP_CORE(X, Z, direction, BABYSTEP_INVERT_Z, (CORESIGN(1)>0));
#elif CORE_IS_YZ
BABYSTEP_CORE(Y, Z, direction, BABYSTEP_INVERT_Z, (CORESIGN(1)<0));
#elif DISABLED(DELTA)
Expand Down

0 comments on commit f207177

Please sign in to comment.