mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-24 12:35:51 +00:00
Preheat Menu shortcut option (#20350)
This commit is contained in:
parent
fc09581aa3
commit
13dee4d059
@ -1147,6 +1147,9 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Insert a menu for preheating at the top level to allow for quick access
|
||||
//#define PREHEAT_SHORTCUT_MENU_ITEM
|
||||
|
||||
#endif // HAS_LCD_MENU
|
||||
|
||||
#if HAS_DISPLAY
|
||||
|
@ -2380,6 +2380,10 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !PREHEAT_COUNT
|
||||
#undef PREHEAT_SHORTCUT_MENU_ITEM
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Up to 3 PWM fans
|
||||
*/
|
||||
|
@ -97,6 +97,10 @@ void menu_configuration();
|
||||
void menu_spindle_laser();
|
||||
#endif
|
||||
|
||||
#if ENABLED(PREHEAT_SHORTCUT_MENU_ITEM)
|
||||
void menu_preheat_only();
|
||||
#endif
|
||||
|
||||
#if HAS_MULTI_LANGUAGE
|
||||
void menu_language();
|
||||
#endif
|
||||
@ -177,6 +181,10 @@ void menu_main() {
|
||||
ACTION_ITEM(MSG_HOST_START_PRINT, host_action_start);
|
||||
#endif
|
||||
|
||||
#if ENABLED(PREHEAT_SHORTCUT_MENU_ITEM)
|
||||
SUBMENU(MSG_PREHEAT_CUSTOM, menu_preheat_only);
|
||||
#endif
|
||||
|
||||
SUBMENU(MSG_MOTION, menu_motion);
|
||||
}
|
||||
|
||||
|
@ -226,7 +226,7 @@ void menu_temperature() {
|
||||
|
||||
#if PREHEAT_COUNT
|
||||
//
|
||||
// Preheat for Materials 1 to 5
|
||||
// Preheat for all Materials
|
||||
//
|
||||
LOOP_L_N(m, PREHEAT_COUNT) {
|
||||
editable.int8 = m;
|
||||
@ -249,4 +249,24 @@ void menu_temperature() {
|
||||
END_MENU();
|
||||
}
|
||||
|
||||
#if ENABLED(PREHEAT_SHORTCUT_MENU_ITEM)
|
||||
|
||||
void menu_preheat_only() {
|
||||
START_MENU();
|
||||
BACK_ITEM(MSG_MAIN);
|
||||
|
||||
LOOP_L_N(m, PREHEAT_COUNT) {
|
||||
editable.int8 = m;
|
||||
#if HOTENDS > 1 || HAS_HEATED_BED
|
||||
SUBMENU_S(ui.get_preheat_label(m), MSG_PREHEAT_M, menu_preheat_m);
|
||||
#else
|
||||
ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M, do_preheat_end_m);
|
||||
#endif
|
||||
}
|
||||
|
||||
END_MENU();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif // HAS_LCD_MENU && HAS_TEMPERATURE
|
||||
|
Loading…
Reference in New Issue
Block a user