First SD status change is silent

This commit is contained in:
Scott Lahteine 2020-04-04 23:51:11 -05:00
parent 86a3efda6f
commit 07b3f38269

View File

@ -1551,17 +1551,18 @@ void MarlinUI::update() {
} }
if (status) { if (status) {
if (old_status < 2) {
#if ENABLED(EXTENSIBLE_UI) #if ENABLED(EXTENSIBLE_UI)
ExtUI::onMediaInserted(); // ExtUI response ExtUI::onMediaInserted(); // ExtUI response
#endif #endif
if (old_status < 2)
set_status_P(GET_TEXT(MSG_MEDIA_INSERTED)); set_status_P(GET_TEXT(MSG_MEDIA_INSERTED));
} }
}
else { else {
if (old_status < 2) {
#if ENABLED(EXTENSIBLE_UI) #if ENABLED(EXTENSIBLE_UI)
ExtUI::onMediaRemoved(); // ExtUI response ExtUI::onMediaRemoved(); // ExtUI response
#endif #endif
if (old_status < 2) {
#if PIN_EXISTS(SD_DETECT) #if PIN_EXISTS(SD_DETECT)
set_status_P(GET_TEXT(MSG_MEDIA_REMOVED)); set_status_P(GET_TEXT(MSG_MEDIA_REMOVED));
#if HAS_LCD_MENU #if HAS_LCD_MENU