Parcourir la source

G30 will only disable bed leveling

Scott Lahteine il y a 8 ans
Parent
révision
850e38d013
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp Voir le fichier

@@ -4097,13 +4097,13 @@ inline void gcode_G28() {
4097 4097
    */
4098 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 4103
     #endif
4103 4104
 
4104 4105
     setup_for_endstop_or_probe_move();
4105 4106
 
4106
-    // TODO: clear the leveling matrix or the planner will be set incorrectly
4107 4107
     float measured_z = probe_pt(current_position[X_AXIS] + X_PROBE_OFFSET_FROM_EXTRUDER,
4108 4108
                                 current_position[Y_AXIS] + Y_PROBE_OFFSET_FROM_EXTRUDER,
4109 4109
                                 true, 1);

Chargement…
Annuler
Enregistrer