Browse Source

Skip SD menu refresh if nothing has changed

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

+ 2
- 0
Marlin/ultralcd.cpp View File

@@ -695,6 +695,8 @@ static void lcd_sd_updir()
695 695
 
696 696
 void lcd_sdcard_menu()
697 697
 {
698
+    if (lcdDrawUpdate == 0 && LCD_CLICKED == 0) 
699
+        return;	// nothing to do (so don't thrash the SD card)
698 700
     uint16_t fileCnt = card.getnrfilenames();
699 701
     START_MENU();
700 702
     MENU_ITEM(back, MSG_MAIN, lcd_main_menu);

Loading…
Cancel
Save