Browse Source

Merge pull request #4660 from MagoKimbra/Fix_Zig_Zag

Fix_Zig_Zag
Scott Lahteine 8 years ago
parent
commit
b15f8ca641
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

@@ -3645,7 +3645,7 @@ inline void gcode_G28() {
3645 3645
 
3646 3646
       for (int yCount = 0; yCount < auto_bed_leveling_grid_points; yCount++) {
3647 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 3649
         int xStart, xStop, xInc;
3650 3650
 
3651 3651
         if (zig) {
@@ -3663,7 +3663,7 @@ inline void gcode_G28() {
3663 3663
 
3664 3664
         for (int xCount = xStart; xCount != xStop; xCount += xInc) {
3665 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 3668
           #if ENABLED(DELTA)
3669 3669
             // Avoid probing outside the round or hexagonal area of a delta printer

Loading…
Cancel
Save