Skip to content
Snippets Groups Projects
Commit d504bbbf authored by Roxy-3D's avatar Roxy-3D Committed by Scott Lahteine
Browse files

Fix botched check for being off the mesh...

parent 7d8c6b3f
Branches
Tags
No related merge requests found
...@@ -291,7 +291,7 @@ class unified_bed_leveling { ...@@ -291,7 +291,7 @@ class unified_bed_leveling {
* UBL_Z_RAISE_WHEN_OFF_MESH is specified, that value is returned. * UBL_Z_RAISE_WHEN_OFF_MESH is specified, that value is returned.
*/ */
#ifdef UBL_Z_RAISE_WHEN_OFF_MESH #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; return UBL_Z_RAISE_WHEN_OFF_MESH;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment