Browse Source

G30 will only disable bed leveling

Scott Lahteine 9 years ago
parent
commit
850e38d013
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp View File

4097
    */
4097
    */
4098
   inline void gcode_G30() {
4098
   inline void gcode_G30() {
4099
 
4099
 
4100
-    #if HAS_ABL
4101
-      reset_bed_level();
4100
+    // Disable leveling so the planner won't mess with us
4101
+    #if PLANNER_LEVELING
4102
+      set_bed_leveling_enabled(false);
4102
     #endif
4103
     #endif
4103
 
4104
 
4104
     setup_for_endstop_or_probe_move();
4105
     setup_for_endstop_or_probe_move();
4105
 
4106
 
4106
-    // TODO: clear the leveling matrix or the planner will be set incorrectly
4107
     float measured_z = probe_pt(current_position[X_AXIS] + X_PROBE_OFFSET_FROM_EXTRUDER,
4107
     float measured_z = probe_pt(current_position[X_AXIS] + X_PROBE_OFFSET_FROM_EXTRUDER,
4108
                                 current_position[Y_AXIS] + Y_PROBE_OFFSET_FROM_EXTRUDER,
4108
                                 current_position[Y_AXIS] + Y_PROBE_OFFSET_FROM_EXTRUDER,
4109
                                 true, 1);
4109
                                 true, 1);

Loading…
Cancel
Save