Browse Source

Skip SD menu refresh if nothing has changed

Brendan-csel 12 years ago
parent
commit
d80aecda0a
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Marlin/ultralcd.cpp

+ 2
- 0
Marlin/ultralcd.cpp View File

@@ -675,6 +675,8 @@ static void lcd_sd_updir()
675 675
 
676 676
 void lcd_sdcard_menu()
677 677
 {
678
+    if (lcdDrawUpdate == 0 && LCD_CLICKED == 0) 
679
+        return;	// nothing to do (so don't thrash the SD card)
678 680
     uint16_t fileCnt = card.getnrfilenames();
679 681
     START_MENU();
680 682
     MENU_ITEM(back, MSG_MAIN, lcd_main_menu);

Loading…
Cancel
Save