From 0a2b4f3486a7af01e0f4eb81f911d9887f64ec3d Mon Sep 17 00:00:00 2001 From: benlye Date: Wed, 5 Apr 2017 19:44:19 +0100 Subject: [PATCH] Fix bilinear levelling z offset Since run_probe was altered to return the probe Z position rather than the nozzle Z position bilinear levelling has been broken because the Z-offset has been applied twice - once in the run_probe function, and then again in the G29 code for bilinear levelling. --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 7927fc653..2ea5e2809 100755 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -4300,7 +4300,7 @@ inline void gcode_G28() { #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) - bed_level_grid[xCount][yCount] = measured_z + zoffset; + bed_level_grid[xCount][yCount] = measured_z; #elif ENABLED(AUTO_BED_LEVELING_3POINT) @@ -4472,7 +4472,7 @@ inline void gcode_G28() { #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) - bed_level_grid[xCount][yCount] = measured_z + zoffset; + bed_level_grid[xCount][yCount] = measured_z; #endif