From d473456a0891cf7011097736c24a229be7428943 Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Wed, 21 Feb 2018 13:50:27 -0600 Subject: [PATCH] Fix botched check for being off the mesh... --- Marlin/ubl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/ubl.h b/Marlin/ubl.h index 420031f65..70fde0fff 100644 --- a/Marlin/ubl.h +++ b/Marlin/ubl.h @@ -288,7 +288,7 @@ * UBL_Z_RAISE_WHEN_OFF_MESH is specified, that value is returned. */ #ifdef UBL_Z_RAISE_WHEN_OFF_MESH - if (!WITHIN(rx0, 0, GRID_MAX_POINTS_X - 1) || !WITHIN(ry0, 0, GRID_MAX_POINTS_Y - 1)) + if (!WITHIN(rx0, MESH_MIN_X, MESH_MAX_X) || !WITHIN(ry0, MESH_MIN_Y, MESH_MAX_Y)) return UBL_Z_RAISE_WHEN_OFF_MESH; #endif