Fix #4995 - M48/G29 on CoreXY maybe others?

This commit is contained in:
Greg Cormier 2016-10-22 20:45:13 -04:00
parent 483082387c
commit f0aed9dac7

View File

@ -2082,12 +2082,13 @@ static void clean_up_after_endstop_or_probe_move() {
// Clear endstop flags // Clear endstop flags
endstops.hit_on_purpose(); endstops.hit_on_purpose();
// Tell the planner where we actually are
planner.sync_from_steppers();
// Get Z where the steppers were interrupted // Get Z where the steppers were interrupted
set_current_from_steppers_for_axis(Z_AXIS); 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 ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) DEBUG_POS("<<< do_probe_move", current_position); if (DEBUGGING(LEVELING)) DEBUG_POS("<<< do_probe_move", current_position);
#endif #endif
@ -3819,7 +3820,7 @@ inline void gcode_G28() {
set_current_from_steppers_for_axis(ALL_AXES); set_current_from_steppers_for_axis(ALL_AXES);
// Sync the planner to where the steppers stopped // Sync the planner to where the steppers stopped
planner.sync_from_steppers(); SYNC_PLAN_POSITION_KINEMATIC();
} }
setup_for_endstop_or_probe_move(); setup_for_endstop_or_probe_move();