From db81a1d4a232ddc4a5b1069218e4965124ca1238 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 12 Apr 2018 19:20:57 -0500 Subject: [PATCH] Make sure MBL starts close to the bed Fix #10390 --- Marlin/Marlin_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index be0e4fe7b..4c5718537 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -4277,6 +4277,12 @@ void home_all_axes() { gcode_G28(true); } soft_endstops_enabled = false; #endif + // Move close to the bed for the first point + if (!mbl_probe_index) { + current_position[Z_AXIS] = Z_MIN_POS; + buffer_line_to_current_position(); + } + mbl_probe_index++; } else {