Browse Source

Merge pull request #5070 from gcormier/rcbugfix

Fix #4995 - M48/G29 on CoreXY maybe others?
Scott Lahteine 8 years ago
parent
commit
1097a50694
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      Marlin/Marlin_main.cpp

+ 5
- 4
Marlin/Marlin_main.cpp View File

@@ -2082,12 +2082,13 @@ static void clean_up_after_endstop_or_probe_move() {
2082 2082
     // Clear endstop flags
2083 2083
     endstops.hit_on_purpose();
2084 2084
 
2085
-    // Tell the planner where we actually are
2086
-    planner.sync_from_steppers();
2087
-
2088 2085
     // Get Z where the steppers were interrupted
2089 2086
     set_current_from_steppers_for_axis(Z_AXIS);
2090 2087
 
2088
+    // Tell the planner where we actually are
2089
+    SYNC_PLAN_POSITION_KINEMATIC();
2090
+
2091
+
2091 2092
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2092 2093
       if (DEBUGGING(LEVELING)) DEBUG_POS("<<< do_probe_move", current_position);
2093 2094
     #endif
@@ -3819,7 +3820,7 @@ inline void gcode_G28() {
3819 3820
       set_current_from_steppers_for_axis(ALL_AXES);
3820 3821
 
3821 3822
       // Sync the planner to where the steppers stopped
3822
-      planner.sync_from_steppers();
3823
+      SYNC_PLAN_POSITION_KINEMATIC();
3823 3824
     }
3824 3825
 
3825 3826
     setup_for_endstop_or_probe_move();

Loading…
Cancel
Save