|
|
|
@ -126,22 +126,22 @@ void menu_main() {
|
|
|
|
|
|
|
|
|
|
if (card_detected) {
|
|
|
|
|
if (!card_open) {
|
|
|
|
|
MENU_ITEM(submenu, MSG_CARD_MENU, menu_sdcard);
|
|
|
|
|
MENU_ITEM(submenu, MSG_MEDIA_MENU, menu_media);
|
|
|
|
|
MENU_ITEM(gcode,
|
|
|
|
|
#if PIN_EXISTS(SD_DETECT)
|
|
|
|
|
MSG_CHANGE_SDCARD, PSTR("M21")
|
|
|
|
|
MSG_CHANGE_MEDIA, PSTR("M21")
|
|
|
|
|
#else
|
|
|
|
|
MSG_RELEASE_SDCARD, PSTR("M22")
|
|
|
|
|
MSG_RELEASE_MEDIA, PSTR("M22")
|
|
|
|
|
#endif
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
#if PIN_EXISTS(SD_DETECT)
|
|
|
|
|
MENU_ITEM(function, MSG_NO_CARD, nullptr);
|
|
|
|
|
MENU_ITEM(function, MSG_NO_MEDIA, nullptr);
|
|
|
|
|
#else
|
|
|
|
|
MENU_ITEM(gcode, MSG_INIT_SDCARD, PSTR("M21"));
|
|
|
|
|
MENU_ITEM(function, MSG_SD_RELEASED, nullptr);
|
|
|
|
|
MENU_ITEM(gcode, MSG_INIT_MEDIA, PSTR("M21"));
|
|
|
|
|
MENU_ITEM(function, MSG_MEDIA_RELEASED, nullptr);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
#endif // !HAS_ENCODER_WHEEL && SDSUPPORT
|
|
|
|
@ -219,20 +219,20 @@ void menu_main() {
|
|
|
|
|
if (!card_open) {
|
|
|
|
|
MENU_ITEM(gcode,
|
|
|
|
|
#if PIN_EXISTS(SD_DETECT)
|
|
|
|
|
MSG_CHANGE_SDCARD, PSTR("M21")
|
|
|
|
|
MSG_CHANGE_MEDIA, PSTR("M21")
|
|
|
|
|
#else
|
|
|
|
|
MSG_RELEASE_SDCARD, PSTR("M22")
|
|
|
|
|
MSG_RELEASE_MEDIA, PSTR("M22")
|
|
|
|
|
#endif
|
|
|
|
|
);
|
|
|
|
|
MENU_ITEM(submenu, MSG_CARD_MENU, menu_sdcard);
|
|
|
|
|
MENU_ITEM(submenu, MSG_MEDIA_MENU, menu_media);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
#if PIN_EXISTS(SD_DETECT)
|
|
|
|
|
MENU_ITEM(function, MSG_NO_CARD, nullptr);
|
|
|
|
|
MENU_ITEM(function, MSG_NO_MEDIA, nullptr);
|
|
|
|
|
#else
|
|
|
|
|
MENU_ITEM(gcode, MSG_INIT_SDCARD, PSTR("M21"));
|
|
|
|
|
MENU_ITEM(function, MSG_SD_RELEASED, nullptr);
|
|
|
|
|
MENU_ITEM(gcode, MSG_INIT_MEDIA, PSTR("M21"));
|
|
|
|
|
MENU_ITEM(function, MSG_MEDIA_RELEASED, nullptr);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
#endif // HAS_ENCODER_WHEEL && SDSUPPORT
|
|
|
|
|