Selaa lähdekoodia

Alway end at the same point

Always end at [RIGHT_PROBE_BED_POSITION, BACK_PROBE_BED_POSITION]
Regardles the evennes of auto_bed_leveling_grid_points.
AnHardt 9 vuotta sitten
vanhempi
commit
d8860f9ad9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp Näytä tiedosto

@@ -2565,7 +2565,7 @@ inline void gcode_G28() {
2565 2565
       #endif // !DELTA
2566 2566
 
2567 2567
       int probePointCounter = 0;
2568
-      bool zig = true;
2568
+      bool zig = (auto_bed_leveling_grid_points & 1) ? true : false; //always end at [RIGHT_PROBE_BED_POSITION, BACK_PROBE_BED_POSITION]
2569 2569
 
2570 2570
       for (int yCount = 0; yCount < auto_bed_leveling_grid_points; yCount++) {
2571 2571
         double yProbe = front_probe_bed_position + yGridSpacing * yCount;

Loading…
Peruuta
Tallenna