Menu length increased on Taranis to allow backups with date in the
filename
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user