Pārlūkot izejas kodu

Always zigzag

Use the shortest way between probing-points.
AnHardt 9 gadus atpakaļ
vecāks
revīzija
4ca8f4a9a7
1 mainītis faili ar 1 papildinājumiem un 7 dzēšanām
  1. 1
    7
      Marlin/Marlin_main.cpp

+ 1
- 7
Marlin/Marlin_main.cpp Parādīt failu

@@ -2582,13 +2582,7 @@ inline void gcode_G28() {
2582 2582
           xInc = -1;
2583 2583
         }
2584 2584
 
2585
-        #if DISABLED(DELTA)
2586
-          // If do_topography_map is set then don't zig-zag. Just scan in one direction.
2587
-          // This gets the probe points in more readable order.
2588
-          if (!do_topography_map) zig = !zig;
2589
-        #else
2590
-          zig = !zig;
2591
-        #endif
2585
+        zig = !zig;
2592 2586
 
2593 2587
         for (int xCount = xStart; xCount != xStop; xCount += xInc) {
2594 2588
           double xProbe = left_probe_bed_position + xGridSpacing * xCount;

Notiek ielāde…
Atcelt
Saglabāt