mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
Menu length increased on Taranis to allow backups with date in the
filename
This commit is contained in:
parent
e3b8e91a0a
commit
ffd4151029
2 changed files with 6 additions and 2 deletions
|
@ -308,7 +308,7 @@ void onModelSelectMenu(const char *result)
|
|||
POPUP_WARNING(eeBackupModel(sub));
|
||||
}
|
||||
else if (result == STR_RESTORE_MODEL || result == STR_UPDATE_LIST) {
|
||||
if (!listSdFiles(MODELS_PATH, MODELS_EXT, sizeof(g_model.header.name), NULL)) {
|
||||
if (!listSdFiles(MODELS_PATH, MODELS_EXT, MENU_LINE_LENGTH-1, NULL)) {
|
||||
POPUP_WARNING(STR_NO_MODELS_ON_SD);
|
||||
s_menu_flags = 0;
|
||||
}
|
||||
|
|
|
@ -397,7 +397,11 @@ void displayWarning(uint8_t event);
|
|||
#else
|
||||
#define MENU_ADD_SD_ITEM(s)
|
||||
#endif
|
||||
#define MENU_LINE_LENGTH (LEN_MODEL_NAME+1)
|
||||
#if LCD_W >= 212
|
||||
#define MENU_LINE_LENGTH (LEN_MODEL_NAME+12)
|
||||
#else
|
||||
#define MENU_LINE_LENGTH (LEN_MODEL_NAME+1)
|
||||
#endif
|
||||
extern const char *s_menu[MENU_MAX_LINES];
|
||||
extern uint16_t s_menu_count;
|
||||
extern uint8_t s_menu_flags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue