|
@ -102,8 +102,8 @@ class MenuItem_sdfile { |
|
|
#if ENABLED(SD_REPRINT_LAST_SELECTED_FILE) |
|
|
#if ENABLED(SD_REPRINT_LAST_SELECTED_FILE) |
|
|
// Save menu state for the selected file
|
|
|
// Save menu state for the selected file
|
|
|
sd_encoder_position = ui.encoderPosition; |
|
|
sd_encoder_position = ui.encoderPosition; |
|
|
sd_top_line = ui.encoderTopLine; |
|
|
sd_top_line = encoderTopLine; |
|
|
sd_items = ui.screen_items; |
|
|
sd_items = screen_items; |
|
|
#endif |
|
|
#endif |
|
|
#if ENABLED(SD_MENU_CONFIRM_START) |
|
|
#if ENABLED(SD_MENU_CONFIRM_START) |
|
|
do_print_file = false; |
|
|
do_print_file = false; |
|
@ -119,7 +119,7 @@ class MenuItem_sdfolder { |
|
|
static void action(CardReader &theCard) { |
|
|
static void action(CardReader &theCard) { |
|
|
card.chdir(theCard.filename); |
|
|
card.chdir(theCard.filename); |
|
|
encoderTopLine = 0; |
|
|
encoderTopLine = 0; |
|
|
ui.encoderPosition = 2 * ENCODER_STEPS_PER_MENU_ITEM; |
|
|
ui.encoderPosition = 2 * (ENCODER_STEPS_PER_MENU_ITEM); |
|
|
screen_changed = true; |
|
|
screen_changed = true; |
|
|
#if HAS_GRAPHICAL_LCD |
|
|
#if HAS_GRAPHICAL_LCD |
|
|
ui.drawing_screen = false; |
|
|
ui.drawing_screen = false; |
|
|