Skip to content

Commit 499aa66

Browse files
FHeilmanndamicreabox
authored andcommitted
Add Z Fade Height to M420 output if it is enabled (MarlinFirmware#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
1 parent df07274 commit 499aa66

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Marlin/Marlin_main.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9138,6 +9138,15 @@ void quickstop_stepper() {
91389138

91399139
SERIAL_ECHO_START();
91409140
SERIAL_ECHOLNPAIR("Bed Leveling ", new_status ? MSG_ON : MSG_OFF);
9141+
9142+
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
9143+
SERIAL_ECHO_START();
9144+
SERIAL_ECHOPGM("Fade Height ");
9145+
if (planner.z_fade_height > 0.0)
9146+
SERIAL_ECHOLN(planner.z_fade_height);
9147+
else
9148+
SERIAL_ECHOLNPGM(MSG_OFF);
9149+
#endif
91419150
}
91429151
#endif
91439152

0 commit comments

Comments
 (0)