Skip to content

Commit

Permalink
🩹 Fix ProUI compile without Advanced Pause
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 28, 2023
1 parent 6f81785 commit 2a82ca8
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions Marlin/src/lcd/e3v2/proui/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2a82ca8

Please sign in to comment.