Parcourir la source

Merge pull request #3305 from gudnimg/sd-card-lcdtimer-fix-gudni-v2

Fix issue when the SD card is inserted and the file menu may sometimes close immediately due to a timeout
DRracer il y a 2 ans
Parent
commit
a7dfe4b523
2 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 0 1
      Firmware/cardreader.cpp
  2. 1 0
      Firmware/ultralcd.cpp

+ 0 - 1
Firmware/cardreader.cpp

@@ -1030,7 +1030,6 @@ void CardReader::presort() {
 
 	lcd_update(2);
 	KEEPALIVE_STATE(NOT_BUSY);
-	lcd_timeoutToStatus.start();
 }
 
 void CardReader::flush_presort() {

+ 1 - 0
Firmware/ultralcd.cpp

@@ -8939,6 +8939,7 @@ void menu_lcd_lcdupdate_func(void)
 			LCD_MESSAGERPGM(_T(WELCOME_MSG));
 			bMain=false;                       // flag (i.e. 'fake parameter') for 'lcd_sdcard_menu()' function
 			menu_submenu(lcd_sdcard_menu);
+			lcd_timeoutToStatus.start();
 		}
 		else
 		{