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