瀏覽代碼

Fix: LCD displays SD status at startup

Scott Lahteine 9 年之前
父節點
當前提交
88540d8ecf
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp 查看文件

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

Loading…
取消
儲存