Browse Source

Apply specific menu item types

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
87d2c471db
  1. 14
      Marlin/src/lcd/menu/menu_main.cpp

14
Marlin/src/lcd/menu/menu_main.cpp

@ -138,13 +138,11 @@ void menu_main() {
if (card_detected) { if (card_detected) {
if (!card_open) { if (!card_open) {
SUBMENU(MSG_MEDIA_MENU, TERN(PASSWORD_ON_SD_PRINT_MENU, password.media_gatekeeper, menu_media)); SUBMENU(MSG_MEDIA_MENU, TERN(PASSWORD_ON_SD_PRINT_MENU, password.media_gatekeeper, menu_media));
MENU_ITEM(gcode,
#if PIN_EXISTS(SD_DETECT) #if PIN_EXISTS(SD_DETECT)
MSG_CHANGE_MEDIA, M21_STR GCODES_ITEM(MSG_CHANGE_MEDIA, M21_STR);
#else #else
MSG_RELEASE_MEDIA, PSTR("M22") GCODES_ITEM(MSG_RELEASE_MEDIA, PSTR("M22"));
#endif #endif
);
} }
} }
else { else {
@ -172,7 +170,7 @@ void menu_main() {
#endif #endif
#if HAS_POWER_MONITOR #if HAS_POWER_MONITOR
MENU_ITEM(submenu, MSG_POWER_MONITOR, menu_power_monitor); SUBMENU(MSG_POWER_MONITOR, menu_power_monitor);
#endif #endif
#if ENABLED(MIXING_EXTRUDER) #if ENABLED(MIXING_EXTRUDER)
@ -237,13 +235,11 @@ void menu_main() {
if (card_detected) { if (card_detected) {
if (!card_open) { if (!card_open) {
MENU_ITEM(gcode,
#if PIN_EXISTS(SD_DETECT) #if PIN_EXISTS(SD_DETECT)
MSG_CHANGE_MEDIA, M21_STR GCODES_ITEM(MSG_CHANGE_MEDIA, M21_STR);
#else #else
MSG_RELEASE_MEDIA, PSTR("M22") GCODES_ITEM(MSG_RELEASE_MEDIA, PSTR("M22"));
#endif #endif
);
SUBMENU(MSG_MEDIA_MENU, TERN(PASSWORD_ON_SD_PRINT_MENU, password.media_gatekeeper, menu_media)); SUBMENU(MSG_MEDIA_MENU, TERN(PASSWORD_ON_SD_PRINT_MENU, password.media_gatekeeper, menu_media));
} }
} }

Loading…
Cancel
Save