From 81e52138ccb6e50897be47d08e1487f50f456655 Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Sat, 2 Dec 2017 14:13:19 -0600 Subject: [PATCH] More corrections for Bi-Linear to work with G26 --- Marlin/Marlin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin.h b/Marlin/Marlin.h index e4289535d..f39a764e6 100644 --- a/Marlin/Marlin.h +++ b/Marlin/Marlin.h @@ -344,8 +344,8 @@ void report_current_position(); #endif #if ENABLED(AUTO_BED_LEVELING_BILINEAR) - #define _GET_MESH_X(I) (bilinear_start[X_AXIS] + I * bilinear_grid_spacing[X_AXIS]) - #define _GET_MESH_Y(J) (bilinear_start[Y_AXIS] + J * bilinear_grid_spacing[Y_AXIS]) + #define _GET_MESH_X(I) (bilinear_start[X_AXIS] + (I) * bilinear_grid_spacing[X_AXIS]) + #define _GET_MESH_Y(J) (bilinear_start[Y_AXIS] + (J) * bilinear_grid_spacing[Y_AXIS]) #elif ENABLED(AUTO_BED_LEVELING_UBL) #define _GET_MESH_X(I) ubl.mesh_index_to_xpos(I) #define _GET_MESH_Y(J) ubl.mesh_index_to_ypos(J)