diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index e0992110..8be2c7c4 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -7110,8 +7110,7 @@ static void lcd_sd_updir() card.updir(); menu_top = 0; lcd_encoder = 0; - // lcd_scrollTimer.start(); - // menu_entering = 1; + memset(&menu_data, 0, sizeof(menu_data)); //reset menu state. Forces reloading of cached variables. } void lcd_print_stop() @@ -8686,8 +8685,7 @@ void menu_action_sddirectory(const char* filename) MYSERIAL.println(dir_names[depth]); card.chdir(filename); lcd_encoder = 0; - // lcd_scrollTimer.start(); - // menu_entering = 1; + memset(&menu_data, 0, sizeof(menu_data)); //reset menu state. Forces reloading of cached variables. } /** LCD API **/