Browse Source

Add Z Fade Height to M420 output if it is enabled (#7042)

* Add Z Fade Height to M420 Output

Echo the z-fade height when M420 is called, if it is enabled.

* Fix Whitespace

* Fix Compiler complaint

* Missing semi-colon
Florian Heilmann 7 years ago
parent
commit
6dcf42f1a7
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Marlin/Marlin_main.cpp

+ 9
- 0
Marlin/Marlin_main.cpp View File

@@ -9032,6 +9032,15 @@ void quickstop_stepper() {
9032 9032
 
9033 9033
     SERIAL_ECHO_START();
9034 9034
     SERIAL_ECHOLNPAIR("Bed Leveling ", new_status ? MSG_ON : MSG_OFF);
9035
+
9036
+    #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
9037
+      SERIAL_ECHO_START();
9038
+      SERIAL_ECHOPGM("Fade Height ");
9039
+      if (planner.z_fade_height > 0.0)
9040
+        SERIAL_ECHOLN(planner.z_fade_height);
9041
+      else
9042
+        SERIAL_ECHOLNPGM(MSG_OFF);
9043
+    #endif
9035 9044
   }
9036 9045
 #endif
9037 9046
 

Loading…
Cancel
Save