mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Return to status when SD card is removed
This commit is contained in:
parent
5f2d75f45b
commit
e6484d9dab
@ -114,7 +114,7 @@ void menu_sdcard() {
|
|||||||
else if (card.flag.cardOK)
|
else if (card.flag.cardOK)
|
||||||
MENU_ITEM(function, LCD_STR_FOLDER "..", lcd_sd_updir);
|
MENU_ITEM(function, LCD_STR_FOLDER "..", lcd_sd_updir);
|
||||||
|
|
||||||
for (uint16_t i = 0; i < fileCnt; i++) {
|
if (ui.should_draw()) for (uint16_t i = 0; i < fileCnt; i++) {
|
||||||
if (_menuLineNr == _thisItemNr) {
|
if (_menuLineNr == _thisItemNr) {
|
||||||
const uint16_t nr =
|
const uint16_t nr =
|
||||||
#if ENABLED(SDCARD_RATHERRECENTFIRST) && DISABLED(SDCARD_SORT_ALPHA)
|
#if ENABLED(SDCARD_RATHERRECENTFIRST) && DISABLED(SDCARD_SORT_ALPHA)
|
||||||
|
@ -709,7 +709,10 @@ void MarlinUI::update() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
card.release();
|
card.release();
|
||||||
if (old_sd_status != 2) set_status_P(PSTR(MSG_SD_REMOVED));
|
if (old_sd_status != 2) {
|
||||||
|
set_status_P(PSTR(MSG_SD_REMOVED));
|
||||||
|
if (!on_status_screen()) return_to_status();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
|
Loading…
Reference in New Issue
Block a user