0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-31 14:12:52 +00:00

🩹 Fix ProUI compile without Advanced Pause

This commit is contained in:
Scott Lahteine 2023-07-27 23:03:36 -05:00
parent 6f8178598f
commit 2a82ca87b0

View file

@ -3437,20 +3437,22 @@ 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)
}
updateMenu(preheatHotendMenu);
}
#endif
#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);
}
#endif
void drawFilamentManMenu() {
checkkey = ID_Menu;
if (SET_MENU(filamentMenu, MSG_FILAMENT_MAN, 6)) {