Browse Source

First SD status change is silent

vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
07b3f38269
  1. 5
      Marlin/src/lcd/ultralcd.cpp

5
Marlin/src/lcd/ultralcd.cpp

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

Loading…
Cancel
Save