Skip to content

Commit

Permalink
Fix_Zig_Zag
Browse files Browse the repository at this point in the history
  • Loading branch information
MagoKimbra committed Aug 20, 2016
1 parent 4d4c00d commit 28d1e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3645,7 +3645,7 @@ inline void gcode_G28() {

for (int yCount = 0; yCount < auto_bed_leveling_grid_points; yCount++) {
float yBase = front_probe_bed_position + yGridSpacing * yCount,
yProbe = floor(yProbe + (yProbe < 0 ? 0 : 0.5));
yProbe = floor(yBase + (yBase < 0 ? 0 : 0.5));
int xStart, xStop, xInc;

if (zig) {
Expand All @@ -3663,7 +3663,7 @@ inline void gcode_G28() {

for (int xCount = xStart; xCount != xStop; xCount += xInc) {
float xBase = left_probe_bed_position + xGridSpacing * xCount,
xProbe = floor(xProbe + (xProbe < 0 ? 0 : 0.5));
xProbe = floor(xBase + (xBase < 0 ? 0 : 0.5));

#if ENABLED(DELTA)
// Avoid probing outside the round or hexagonal area of a delta printer
Expand Down

0 comments on commit 28d1e5a

Please sign in to comment.