Merge pull request #5070 from gcormier/rcbugfix

Fix #4995 - M48/G29 on CoreXY maybe others?
2.0.x
Scott Lahteine 8 years ago committed by GitHub
commit 1097a50694

@ -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
@ -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();

Loading…
Cancel
Save