Browse Source

Fix: LCD displays SD status at startup

Scott Lahteine 9 years ago
parent
commit
88540d8ecf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp View File

2550
 
2550
 
2551
     bool sd_status = IS_SD_INSERTED;
2551
     bool sd_status = IS_SD_INSERTED;
2552
     if (sd_status != lcd_sd_status && lcd_detected()) {
2552
     if (sd_status != lcd_sd_status && lcd_detected()) {
2553
-      lcd_sd_status = sd_status;
2554
 
2553
 
2555
       if (sd_status) {
2554
       if (sd_status) {
2556
         card.initsd();
2555
         card.initsd();
2561
         if (lcd_sd_status != 2) LCD_MESSAGEPGM(MSG_SD_REMOVED);
2560
         if (lcd_sd_status != 2) LCD_MESSAGEPGM(MSG_SD_REMOVED);
2562
       }
2561
       }
2563
 
2562
 
2563
+      lcd_sd_status = sd_status;
2564
       lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW;
2564
       lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW;
2565
       lcd_implementation_init( // to maybe revive the LCD if static electricity killed it.
2565
       lcd_implementation_init( // to maybe revive the LCD if static electricity killed it.
2566
         #if ENABLED(LCD_PROGRESS_BAR)
2566
         #if ENABLED(LCD_PROGRESS_BAR)

Loading…
Cancel
Save