Browse Source

Shrink some debug code in G28

Scott Lahteine 9 years ago
parent
commit
a647b05f82
1 changed files with 10 additions and 16 deletions
  1. 10
    16
      Marlin/Marlin_main.cpp

+ 10
- 16
Marlin/Marlin_main.cpp View File

@@ -3518,22 +3518,16 @@ inline void gcode_G28() {
3518 3518
           float measured_z,
3519 3519
                 z_before = probePointCounter ? Z_RAISE_BETWEEN_PROBINGS + current_position[Z_AXIS] : Z_RAISE_BEFORE_PROBING + home_offset[Z_AXIS];
3520 3520
 
3521
-          if (probePointCounter) {
3522
-            #if ENABLED(DEBUG_LEVELING_FEATURE)
3523
-              if (DEBUGGING(LEVELING)) {
3524
-                SERIAL_ECHOPAIR("z_before = (between) ", (Z_RAISE_BETWEEN_PROBINGS + current_position[Z_AXIS]));
3525
-                SERIAL_EOL;
3526
-              }
3527
-            #endif
3528
-          }
3529
-          else {
3530
-            #if ENABLED(DEBUG_LEVELING_FEATURE)
3531
-              if (DEBUGGING(LEVELING)) {
3532
-                SERIAL_ECHOPAIR("z_before = (before) ", Z_RAISE_BEFORE_PROBING + home_offset[Z_AXIS]);
3533
-                SERIAL_EOL;
3534
-              }
3535
-            #endif
3536
-          }
3521
+          #if ENABLED(DEBUG_LEVELING_FEATURE)
3522
+            if (DEBUGGING(LEVELING)) {
3523
+              SERIAL_ECHOPGM("z_before = (");
3524
+              if (probePointCounter)
3525
+                SERIAL_ECHOPGM("between) ");
3526
+              else
3527
+                SERIAL_ECHOPGM("before) ");
3528
+              SERIAL_ECHOLN(z_before);
3529
+            }
3530
+          #endif
3537 3531
 
3538 3532
           #if ENABLED(DELTA)
3539 3533
             // Avoid probing the corners (outside the round or hexagon print surface) on a delta printer.

Loading…
Cancel
Save