Browse Source

Add comments to G29

Scott Lahteine 5 years ago
parent
commit
98f83dc756
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      Marlin/src/gcode/bedlevel/abl/G29.cpp

+ 8
- 8
Marlin/src/gcode/bedlevel/abl/G29.cpp View File

@@ -674,15 +674,15 @@ G29_TYPE GcodeSuite::G29() {
674 674
 
675 675
         int8_t inStart, inStop, inInc;
676 676
 
677
-        if (zig) { // away from origin
678
-          inStart = 0;
679
-          inStop = PR_INNER_END;
680
-          inInc = 1;
677
+        if (zig) {                    // Zig away from origin
678
+          inStart = 0;                // Left or front
679
+          inStop = PR_INNER_END;      // Right or back
680
+          inInc = 1;                  // Zig right
681 681
         }
682
-        else {     // towards origin
683
-          inStart = PR_INNER_END - 1;
684
-          inStop = -1;
685
-          inInc = -1;
682
+        else {                        // Zag towards origin
683
+          inStart = PR_INNER_END - 1; // Right or back
684
+          inStop = -1;                // Left or front
685
+          inInc = -1;                 // Zag left
686 686
         }
687 687
 
688 688
         zig ^= true; // zag

Loading…
Cancel
Save