From 3a5a6f42fb6f76cb8c9643aaa19a02c388f77e1a Mon Sep 17 00:00:00 2001 From: msutas Date: Mon, 12 Jan 2015 11:07:46 +0200 Subject: [PATCH] Corrected the ABL grid option G29 E was not retracting the probe on the last probe point when used with ABL grid. Corrected. --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 331bcc30a..60752090b 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -1759,7 +1759,7 @@ void process_commands() if ((yProbe==FRONT_PROBE_BED_POSITION) && (xCount==0)) { measured_z = probe_pt(xProbe, yProbe, z_before,1); - } else if ((yProbe==BACK_PROBE_BED_POSITION) && (xCount == AUTO_BED_LEVELING_GRID_POINTS-1)) + } else if ((yProbe==FRONT_PROBE_BED_POSITION + (yGridSpacing * (AUTO_BED_LEVELING_GRID_POINTS-1))) && (xCount == AUTO_BED_LEVELING_GRID_POINTS-1)) { measured_z = probe_pt(xProbe, yProbe, z_before,3); } else {