Browse Source

Get Bi-Linear working with G26

G26 uses logic that looks like:
```
ex = _GET_MESH_X(i + 1) - (SIZE_OF_INTERSECTION_CIRCLES - (SIZE_OF_CROSSHAIRS));
```
The Bi-Linear macros need parenthesis to work correctly.
Roxy-3D 7 years ago
parent
commit
0850b38b45
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/feature/bedlevel/bedlevel.h

+ 2
- 2
Marlin/src/feature/bedlevel/bedlevel.h View File

@@ -72,8 +72,8 @@ void reset_bed_level();
72 72
 #endif
73 73
 
74 74
 #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
75
-  #define _GET_MESH_X(I) bilinear_start[X_AXIS] + I * bilinear_grid_spacing[X_AXIS]
76
-  #define _GET_MESH_Y(J) bilinear_start[Y_AXIS] + J * bilinear_grid_spacing[Y_AXIS]
75
+  #define _GET_MESH_X(I) (bilinear_start[X_AXIS] + I * bilinear_grid_spacing[X_AXIS])
76
+  #define _GET_MESH_Y(J) (bilinear_start[Y_AXIS] + J * bilinear_grid_spacing[Y_AXIS])
77 77
 #elif ENABLED(AUTO_BED_LEVELING_UBL)
78 78
   #define _GET_MESH_X(I) ubl.mesh_index_to_xpos(I)
79 79
   #define _GET_MESH_Y(J) ubl.mesh_index_to_ypos(J)

Loading…
Cancel
Save