SD Menu patches

This commit is contained in:
Scott Lahteine
2017-11-26 01:09:37 -06:00
parent 3cf31205bc
commit 5a1f1305f0
3 changed files with 8 additions and 6 deletions

View File

@@ -3758,7 +3758,7 @@ void kill_screen(const char* lcd_msg) {
#endif
void lcd_sd_updir() {
card.updir();
encoderPosition = card.updir() ? ENCODER_STEPS_PER_MENU_ITEM : 0;
encoderTopLine = 0;
screen_changed = true;
lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW;
@@ -4457,7 +4457,8 @@ void kill_screen(const char* lcd_msg) {
void menu_action_sddirectory(const char* filename, char* longFilename) {
UNUSED(longFilename);
card.chdir(filename);
encoderPosition = 0;
encoderTopLine = 0;
encoderPosition = 2 * ENCODER_STEPS_PER_MENU_ITEM;
screen_changed = true;
lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW;
}