瀏覽代碼

Merge pull request #4660 from MagoKimbra/Fix_Zig_Zag

Fix_Zig_Zag
Scott Lahteine 8 年之前
父節點
當前提交
b15f8ca641
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp 查看文件

3645
 
3645
 
3646
       for (int yCount = 0; yCount < auto_bed_leveling_grid_points; yCount++) {
3646
       for (int yCount = 0; yCount < auto_bed_leveling_grid_points; yCount++) {
3647
         float yBase = front_probe_bed_position + yGridSpacing * yCount,
3647
         float yBase = front_probe_bed_position + yGridSpacing * yCount,
3648
-              yProbe = floor(yProbe + (yProbe < 0 ? 0 : 0.5));
3648
+              yProbe = floor(yBase + (yBase < 0 ? 0 : 0.5));
3649
         int xStart, xStop, xInc;
3649
         int xStart, xStop, xInc;
3650
 
3650
 
3651
         if (zig) {
3651
         if (zig) {
3663
 
3663
 
3664
         for (int xCount = xStart; xCount != xStop; xCount += xInc) {
3664
         for (int xCount = xStart; xCount != xStop; xCount += xInc) {
3665
           float xBase = left_probe_bed_position + xGridSpacing * xCount,
3665
           float xBase = left_probe_bed_position + xGridSpacing * xCount,
3666
-                xProbe = floor(xProbe + (xProbe < 0 ? 0 : 0.5));
3666
+                xProbe = floor(xBase + (xBase < 0 ? 0 : 0.5));
3667
 
3667
 
3668
           #if ENABLED(DELTA)
3668
           #if ENABLED(DELTA)
3669
             // Avoid probing outside the round or hexagonal area of a delta printer
3669
             // Avoid probing outside the round or hexagonal area of a delta printer

Loading…
取消
儲存