Add Planner::sync_from_steppers
Use to sync the planner after an interrupted move (when not overriding the logical position).
This commit is contained in:
@@ -1996,12 +1996,12 @@ 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
|
||||
|
Reference in New Issue
Block a user