|
@@ -2274,13 +2274,11 @@ inline void gcode_G28() {
|
2274
|
2274
|
xStart = 0;
|
2275
|
2275
|
xStop = auto_bed_leveling_grid_points;
|
2276
|
2276
|
xInc = 1;
|
2277
|
|
- zig = false;
|
2278
|
2277
|
}
|
2279
|
2278
|
else {
|
2280
|
2279
|
xStart = auto_bed_leveling_grid_points - 1;
|
2281
|
2280
|
xStop = -1;
|
2282
|
2281
|
xInc = -1;
|
2283
|
|
- zig = true;
|
2284
|
2282
|
}
|
2285
|
2283
|
|
2286
|
2284
|
#ifndef DELTA
|
|
@@ -2367,7 +2365,7 @@ inline void gcode_G28() {
|
2367
|
2365
|
SERIAL_PROTOCOLPGM("+-----------+\n");
|
2368
|
2366
|
|
2369
|
2367
|
for (int yy = auto_bed_leveling_grid_points - 1; yy >= 0; yy--) {
|
2370
|
|
- for (int xx = auto_bed_leveling_grid_points - 1; xx >= 0; xx--) {
|
|
2368
|
+ for (int xx = 0; xx < auto_bed_leveling_grid_points; xx++) {
|
2371
|
2369
|
int ind = yy * auto_bed_leveling_grid_points + xx;
|
2372
|
2370
|
float diff = eqnBVector[ind] - mean;
|
2373
|
2371
|
if (diff >= 0.0)
|