Skip to content

Commit

Permalink
Replace LOOP_XYZ by LOOP_LOGICAL_AXES
Browse files Browse the repository at this point in the history
This loops also through E axis, so E is set to 0 after the loop.
  • Loading branch information
mkbel committed Nov 7, 2022
1 parent 93b93b0 commit 8ecf4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/marlin_stubs/pause/pause.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1259,10 +1259,10 @@ bool Pause::check_user_stop() {
planner.resume_queuing();
set_all_unhomed();
xyze_pos_t real_current_position;
real_current_position[E_AXIS] = 0;
LOOP_XYZ(i) {
LOOP_LOGICAL_AXES(i) {
real_current_position[i] = planner.get_axis_position_mm((AxisEnum)i);
}
real_current_position[E_AXIS] = 0;
#if HAS_POSITION_MODIFIERS
planner.unapply_modifiers(real_current_position
#if HAS_LEVELING
Expand Down

0 comments on commit 8ecf4d9

Please sign in to comment.