UI: Fixed (null) menu entry on targets without RTC

replace/0c9bcaacf005ba62d4ac8a6d38c305713988c4c2
Federico Amedeo Izzo 2021-01-29 23:07:39 +01:00
rodzic 12d58139e4
commit f083a77001
2 zmienionych plików z 9 dodań i 4 usunięć

Wyświetl plik

@ -121,8 +121,8 @@ typedef struct ui_state_t
extern layout_t layout;
extern settings_t settings;
extern const char *menu_items[6];
extern const char *settings_items[2];
extern const char *menu_items[];
extern const char *settings_items[];
extern const char *display_items[];
extern const uint8_t menu_num;
extern const uint8_t settings_num;

Wyświetl plik

@ -109,13 +109,18 @@ const char *menu_items[6] =
"Settings"
};
#ifdef HAS_RTC
const char *settings_items[2] =
{
#ifdef HAS_RTC
"Time & Date",
#endif
"Display"
};
#else
const char *settings_items[1] =
{
"Display"
};
#endif
#ifdef SCREEN_CONTRAST
const char *display_items[2] =