Browse Source

Reset menu state after lcd_sd_refresh

Alex Voinea 4 years ago
parent
commit
22432b1053
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Firmware/ultralcd.cpp

+ 1 - 3
Firmware/ultralcd.cpp

@@ -7100,9 +7100,7 @@ static void lcd_sd_refresh()
 #endif
   menu_top = 0;
   lcd_encoder = 0;
-  //todo: clear menu data. Resets sdcard_menu state and timer
-  // lcd_scrollTimer.start();
-  // menu_entering = 1;
+  memset(&menu_data, 0, sizeof(menu_data)); //reset menu state. Forces reloading of cached variables.
 }
 
 static void lcd_sd_updir()