Browse Source

Get Bi_Linear macros correct to work 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
a27a9b63e4
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin.h

+ 2
- 2
Marlin/Marlin.h View File

@@ -344,8 +344,8 @@ void report_current_position();
344 344
 #endif
345 345
 
346 346
 #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
347
-  #define _GET_MESH_X(I) bilinear_start[X_AXIS] + I * bilinear_grid_spacing[X_AXIS]
348
-  #define _GET_MESH_Y(J) bilinear_start[Y_AXIS] + J * bilinear_grid_spacing[Y_AXIS]
347
+  #define _GET_MESH_X(I) (bilinear_start[X_AXIS] + I * bilinear_grid_spacing[X_AXIS])
348
+  #define _GET_MESH_Y(J) (bilinear_start[Y_AXIS] + J * bilinear_grid_spacing[Y_AXIS])
349 349
 #elif ENABLED(AUTO_BED_LEVELING_UBL)
350 350
   #define _GET_MESH_X(I) ubl.mesh_index_to_xpos(I)
351 351
   #define _GET_MESH_Y(J) ubl.mesh_index_to_ypos(J)

Loading…
Cancel
Save