Browse Source

Fix ZigZag and Topograph table

ZigZag: Inverted Behavior.. If T supplied, it does not zigzag.
Topograph table: The table was rotated 90º clockwise.
alexborro 9 years ago
parent
commit
c2ba5d0c09
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      Marlin/Marlin_main.cpp

+ 1
- 3
Marlin/Marlin_main.cpp View File

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

Loading…
Cancel
Save