Fix: LCD displays SD status at startup

This commit is contained in:
Scott Lahteine 2016-08-08 20:53:18 -07:00
parent b16ea09498
commit 88540d8ecf

View file

@ -2550,7 +2550,6 @@ void lcd_update() {
bool sd_status = IS_SD_INSERTED;
if (sd_status != lcd_sd_status && lcd_detected()) {
lcd_sd_status = sd_status;
if (sd_status) {
card.initsd();
@ -2561,6 +2560,7 @@ void lcd_update() {
if (lcd_sd_status != 2) LCD_MESSAGEPGM(MSG_SD_REMOVED);
}
lcd_sd_status = sd_status;
lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW;
lcd_implementation_init( // to maybe revive the LCD if static electricity killed it.
#if ENABLED(LCD_PROGRESS_BAR)