Skip to content

Commit

Permalink
Merge pull request #5070 from gcormier/rcbugfix
Browse files Browse the repository at this point in the history
Fix #4995 - M48/G29 on CoreXY maybe others?
  • Loading branch information
thinkyhead authored Oct 24, 2016
2 parents fed6cfc + f0aed9d commit 1097a50
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2082,12 +2082,13 @@ static void clean_up_after_endstop_or_probe_move() {
// Clear endstop flags
endstops.hit_on_purpose();

// Tell the planner where we actually are
planner.sync_from_steppers();

// Get Z where the steppers were interrupted
set_current_from_steppers_for_axis(Z_AXIS);

// Tell the planner where we actually are
SYNC_PLAN_POSITION_KINEMATIC();


#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) DEBUG_POS("<<< do_probe_move", current_position);
#endif
Expand Down Expand Up @@ -3819,7 +3820,7 @@ inline void gcode_G28() {
set_current_from_steppers_for_axis(ALL_AXES);

// Sync the planner to where the steppers stopped
planner.sync_from_steppers();
SYNC_PLAN_POSITION_KINEMATIC();
}

setup_for_endstop_or_probe_move();
Expand Down

0 comments on commit 1097a50

Please sign in to comment.