SD Menu patches
This commit is contained in:
parent
9b64be0bc5
commit
f90c075d1f
3 changed files with 8 additions and 6 deletions
|
|
@ -3743,7 +3743,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;
|
||||
|
|
@ -4444,7 +4444,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue