Browse Source

Fix DEBUG_LEVELING_FEATURE for MBL

As noted in #10777
Scott Lahteine 6 years ago
parent
commit
3bb950c69a
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Marlin/src/core/utility.cpp

+ 5
- 1
Marlin/src/core/utility.cpp View File

@@ -378,7 +378,11 @@ void safe_delay(millis_t ms) {
378 378
       SERIAL_ECHOPGM("Mesh Bed Leveling");
379 379
       if (planner.leveling_active) {
380 380
         SERIAL_ECHOLNPGM(" (enabled)");
381
-        SERIAL_ECHOPAIR("MBL Adjustment Z", ftostr43sign(mbl.get_z(current_position[X_AXIS], current_position[Y_AXIS], 1.0), '+'));
381
+        SERIAL_ECHOPAIR("MBL Adjustment Z", ftostr43sign(mbl.get_z(current_position[X_AXIS], current_position[Y_AXIS]
382
+          #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
383
+            , 1.0
384
+          #endif
385
+        ), '+'));
382 386
         #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
383 387
           if (planner.z_fade_height) {
384 388
             SERIAL_ECHOPAIR(" (", ftostr43sign(

Loading…
Cancel
Save