From a9786a94b779e258af7dc0f82894b6b4df75a7c8 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 27 Jul 2023 23:03:36 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20ProUI=20compile=20without?= =?UTF-8?q?=20Advanced=20Pause?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/lcd/e3v2/proui/dwin.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Marlin/src/lcd/e3v2/proui/dwin.cpp b/Marlin/src/lcd/e3v2/proui/dwin.cpp index 7aa9b1760d10..2c52b0cabc8c 100644 --- a/Marlin/src/lcd/e3v2/proui/dwin.cpp +++ b/Marlin/src/lcd/e3v2/proui/dwin.cpp @@ -3437,19 +3437,21 @@ void drawMotionMenu() { updateMenu(motionMenu); } -#if HAS_PREHEAT - void drawPreheatHotendMenu() { - checkkey = ID_Menu; - if (SET_MENU(preheatHotendMenu, MSG_PREHEAT_HOTEND, 1 + PREHEAT_COUNT)) { - BACK_ITEM(drawFilamentManMenu); - #define _ITEM_PREHEAT_HE(N) MENU_ITEM(ICON_Preheat##N, MSG_PREHEAT_##N, onDrawMenuItem, DoPreheatHotend##N); - REPEAT_1(PREHEAT_COUNT, _ITEM_PREHEAT_HE) +#if ENABLED(ADVANCED_PAUSE_FEATURE) + + #if HAS_PREHEAT + + void drawPreheatHotendMenu() { + checkkey = ID_Menu; + if (SET_MENU(preheatHotendMenu, MSG_PREHEAT_HOTEND, 1 + PREHEAT_COUNT)) { + BACK_ITEM(drawFilamentManMenu); + #define _ITEM_PREHEAT_HE(N) MENU_ITEM(ICON_Preheat##N, MSG_PREHEAT_##N, onDrawMenuItem, DoPreheatHotend##N); + REPEAT_1(PREHEAT_COUNT, _ITEM_PREHEAT_HE) + } + updateMenu(preheatHotendMenu); } - updateMenu(preheatHotendMenu); - } -#endif -#if ENABLED(ADVANCED_PAUSE_FEATURE) + #endif void drawFilamentManMenu() { checkkey = ID_Menu;