Browse Source

Make sure MBL starts close to the bed

Fix #10390
Scott Lahteine 7 years ago
parent
commit
daa712455b
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      Marlin/src/gcode/bedlevel/mbl/G29.cpp

+ 6
- 0
Marlin/src/gcode/bedlevel/mbl/G29.cpp View File

123
           soft_endstops_enabled = false;
123
           soft_endstops_enabled = false;
124
         #endif
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
         mbl_probe_index++;
132
         mbl_probe_index++;
127
       }
133
       }
128
       else {
134
       else {

Loading…
Cancel
Save