From 5d5ff36446a65630078a807a28475cf328a8a7d1 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 7 Jun 2017 10:21:34 -0500 Subject: [PATCH] Fix a compile error with _lcd_set_z_fade_height --- Marlin/ultralcd.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index 5b519493de..1512cd893b 100755 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -1731,7 +1731,10 @@ void kill_screen(const char* lcd_msg) { static bool _level_state; void _lcd_toggle_bed_leveling() { set_bed_leveling_enabled(_level_state); } - void _lcd_set_z_fade_height() { set_z_fade_height(planner.z_fade_height); } + + #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT) + void _lcd_set_z_fade_height() { set_z_fade_height(planner.z_fade_height); } + #endif /** * Step 1: Bed Level entry-point