Browse Source

Fix card removal

Alex Voinea 5 years ago
parent
commit
273d834b19
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Firmware/ultralcd.cpp

+ 2 - 0
Firmware/ultralcd.cpp

@@ -8759,6 +8759,8 @@ void menu_lcd_lcdupdate_func(void)
 		{
                if(menu_menu==lcd_sdcard_menu)
                     menu_back();
+               else if (menu_menu==lcd_filename_scroll)
+                    menu_back(2); //back 2 levels. Exit lcd_filename_scroll and lcd sd_card_menu
 			card.release();
 			LCD_MESSAGERPGM(_i("Card removed"));////MSG_SD_REMOVED
 		}