Browse Source

First SD status change is silent

Scott Lahteine 5 years ago
parent
commit
07b3f38269
1 changed files with 8 additions and 7 deletions
  1. 8
    7
      Marlin/src/lcd/ultralcd.cpp

+ 8
- 7
Marlin/src/lcd/ultralcd.cpp View File

@@ -1551,17 +1551,18 @@ void MarlinUI::update() {
1551 1551
     }
1552 1552
 
1553 1553
     if (status) {
1554
-      #if ENABLED(EXTENSIBLE_UI)
1555
-        ExtUI::onMediaInserted();   // ExtUI response
1556
-      #endif
1557
-      if (old_status < 2)
1554
+      if (old_status < 2) {
1555
+        #if ENABLED(EXTENSIBLE_UI)
1556
+          ExtUI::onMediaInserted(); // ExtUI response
1557
+        #endif
1558 1558
         set_status_P(GET_TEXT(MSG_MEDIA_INSERTED));
1559
+      }
1559 1560
     }
1560 1561
     else {
1561
-      #if ENABLED(EXTENSIBLE_UI)
1562
-        ExtUI::onMediaRemoved();    // ExtUI response
1563
-      #endif
1564 1562
       if (old_status < 2) {
1563
+        #if ENABLED(EXTENSIBLE_UI)
1564
+          ExtUI::onMediaRemoved();  // ExtUI response
1565
+        #endif
1565 1566
         #if PIN_EXISTS(SD_DETECT)
1566 1567
           set_status_P(GET_TEXT(MSG_MEDIA_REMOVED));
1567 1568
           #if HAS_LCD_MENU

Loading…
Cancel
Save