|
@ -2274,13 +2274,11 @@ inline void gcode_G28() { |
|
|
xStart = 0; |
|
|
xStart = 0; |
|
|
xStop = auto_bed_leveling_grid_points; |
|
|
xStop = auto_bed_leveling_grid_points; |
|
|
xInc = 1; |
|
|
xInc = 1; |
|
|
zig = false; |
|
|
|
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
xStart = auto_bed_leveling_grid_points - 1; |
|
|
xStart = auto_bed_leveling_grid_points - 1; |
|
|
xStop = -1; |
|
|
xStop = -1; |
|
|
xInc = -1; |
|
|
xInc = -1; |
|
|
zig = true; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#ifndef DELTA |
|
|
#ifndef DELTA |
|
@ -2367,7 +2365,7 @@ inline void gcode_G28() { |
|
|
SERIAL_PROTOCOLPGM("+-----------+\n"); |
|
|
SERIAL_PROTOCOLPGM("+-----------+\n"); |
|
|
|
|
|
|
|
|
for (int yy = auto_bed_leveling_grid_points - 1; yy >= 0; yy--) { |
|
|
for (int yy = auto_bed_leveling_grid_points - 1; yy >= 0; yy--) { |
|
|
for (int xx = auto_bed_leveling_grid_points - 1; xx >= 0; xx--) { |
|
|
for (int xx = 0; xx < auto_bed_leveling_grid_points; xx++) { |
|
|
int ind = yy * auto_bed_leveling_grid_points + xx; |
|
|
int ind = yy * auto_bed_leveling_grid_points + xx; |
|
|
float diff = eqnBVector[ind] - mean; |
|
|
float diff = eqnBVector[ind] - mean; |
|
|
if (diff >= 0.0) |
|
|
if (diff >= 0.0) |
|
|