From 6dcf42f1a7bd0ff451476b10078da8e8c4498e05 Mon Sep 17 00:00:00 2001 From: Florian Heilmann Date: Tue, 20 Jun 2017 00:53:07 +0200 Subject: [PATCH] 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 --- Marlin/Marlin_main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index b364e6f2f..f895ee46c 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -9032,6 +9032,15 @@ void quickstop_stepper() { SERIAL_ECHO_START(); SERIAL_ECHOLNPAIR("Bed Leveling ", new_status ? MSG_ON : MSG_OFF); + + #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT) + SERIAL_ECHO_START(); + SERIAL_ECHOPGM("Fade Height "); + if (planner.z_fade_height > 0.0) + SERIAL_ECHOLN(planner.z_fade_height); + else + SERIAL_ECHOLNPGM(MSG_OFF); + #endif } #endif