From 37a6833d7e9bf5f0f9525251a7905ebdd89d92a8 Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Thu, 13 Jul 2017 16:33:02 -0500 Subject: [PATCH] Allow the sampled point to be added into the Least Squares Best Fit (#7289) Without this... The LSF won't work because none of the sampled points in this code block get added. --- Marlin/Marlin_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index cbd33480a..26b7df639 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -4623,6 +4623,8 @@ void home_all_axes() { gcode_G28(true); } eqnAMatrix[abl_probe_index + 1 * abl2] = yProbe; eqnAMatrix[abl_probe_index + 2 * abl2] = 1; + incremental_LSF(&lsf_results, xProbe, yProbe, measured_z); + #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) z_values[xCount][yCount] = measured_z + zoffset;