From c377c59d47d9eeb330cc630c8e59ac31b1d871bc Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Sun, 19 Mar 2017 15:13:33 -0600 Subject: [PATCH] Allow G29 P1 R to generate the mesh Fix the logic change that happened when UBL got merged. --- Marlin/UBL_G29.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Marlin/UBL_G29.cpp b/Marlin/UBL_G29.cpp index 7f4bdf3686..fa53864d76 100644 --- a/Marlin/UBL_G29.cpp +++ b/Marlin/UBL_G29.cpp @@ -1324,14 +1324,12 @@ mx = blm.map_x_index_to_bed_location(i); // Check if we can probe this mesh location my = blm.map_y_index_to_bed_location(j); - // If we are using the probe as the reference - // there are some locations we can't get to. - // We prune these out of the list and ignore - // them until the next Phase where we do the + // If we are using the probe as the reference there are some locations we can't get to. + // We prune these out of the list and ignore them until the next Phase where we do the // manual nozzle probing. - if (probe_as_reference - && (mx < (MIN_PROBE_X) || mx > (MAX_PROBE_X)) - && (my < (MIN_PROBE_Y) || my > (MAX_PROBE_Y)) + + if (probe_as_reference && + ( mx < (MIN_PROBE_X) || mx > (MAX_PROBE_X) || my < (MIN_PROBE_Y) || my > (MAX_PROBE_Y) ) ) continue; dx = px - mx; // We can get to it. Let's see if it is the