Parcourir la source

Make sure MBL starts close to the bed

Fix #10390
Scott Lahteine il y a 6 ans
Parent
révision
daa712455b
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6
    0
      Marlin/src/gcode/bedlevel/mbl/G29.cpp

+ 6
- 0
Marlin/src/gcode/bedlevel/mbl/G29.cpp Voir le fichier

@@ -123,6 +123,12 @@ void GcodeSuite::G29() {
123 123
           soft_endstops_enabled = false;
124 124
         #endif
125 125
 
126
+        // Move close to the bed for the first point
127
+        if (!mbl_probe_index) {
128
+          current_position[Z_AXIS] = Z_MIN_POS;
129
+          buffer_line_to_current_position();
130
+        }
131
+
126 132
         mbl_probe_index++;
127 133
       }
128 134
       else {

Chargement…
Annuler
Enregistrer