瀏覽代碼

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 年之前
父節點
當前提交
a27a9b63e4
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/Marlin.h

+ 2
- 2
Marlin/Marlin.h 查看文件

344
 #endif
344
 #endif
345
 
345
 
346
 #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
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
 #elif ENABLED(AUTO_BED_LEVELING_UBL)
349
 #elif ENABLED(AUTO_BED_LEVELING_UBL)
350
   #define _GET_MESH_X(I) ubl.mesh_index_to_xpos(I)
350
   #define _GET_MESH_X(I) ubl.mesh_index_to_xpos(I)
351
   #define _GET_MESH_Y(J) ubl.mesh_index_to_ypos(J)
351
   #define _GET_MESH_Y(J) ubl.mesh_index_to_ypos(J)

Loading…
取消
儲存