mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 04:45:17 +03:00
Bring back radio type on version screen (#7768)
This commit is contained in:
parent
9a639b3fb1
commit
4d6a8e063a
4 changed files with 11 additions and 9 deletions
|
@ -186,13 +186,13 @@ bool menuRadioVersion(event_t event)
|
|||
getCPUUniqueID(id);
|
||||
|
||||
SIMPLE_MENU(STR_MENUVERSION, RADIO_ICONS, menuTabGeneral, MENU_RADIO_VERSION, 1);
|
||||
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP, vers_stamp);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + FH, date_stamp);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 2*FH, time_stamp);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 3*FH, eeprom_stamp);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 4*FH, "UID:");
|
||||
lcdDrawText(MENUS_MARGIN_LEFT + 64, MENU_CONTENT_TOP + 4*FH, id);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP, fw_stamp);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + FH, vers_stamp);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 2*FH, date_stamp);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 3*FH, time_stamp);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 4*FH, eeprom_stamp);
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, MENU_CONTENT_TOP + 5*FH, "UID:");
|
||||
lcdDrawText(MENUS_MARGIN_LEFT + 64, MENU_CONTENT_TOP + 5*FH, id);
|
||||
|
||||
coord_t y = MENU_CONTENT_TOP + 5*FH;
|
||||
lcdDrawText(MENUS_MARGIN_LEFT, y, "OPTS:");
|
||||
|
|
|
@ -222,7 +222,7 @@ void menuRadioModulesVersion(event_t event)
|
|||
enum MenuRadioVersionItems
|
||||
{
|
||||
ITEM_RADIO_VERSION_FIRST = HEADER_LINE - 1,
|
||||
#if defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
#if defined(PCBTARANIS)
|
||||
ITEM_RADIO_FIRMWARE_OPTIONS,
|
||||
#endif
|
||||
#if defined(PXX2)
|
||||
|
@ -250,7 +250,7 @@ void menuRadioVersion(event_t event)
|
|||
|
||||
y += 2;
|
||||
|
||||
#if defined(PCBTARANIS) || defined(PCBHORUS)
|
||||
#if defined(PCBTARANIS)
|
||||
lcdDrawText(INDENT_WIDTH, y, BUTTON(TR_FIRMWARE_OPTIONS), menuVerticalPosition == ITEM_RADIO_FIRMWARE_OPTIONS ? INVERS : 0);
|
||||
y += FH;
|
||||
if (menuVerticalPosition == ITEM_RADIO_FIRMWARE_OPTIONS && event == EVT_KEY_BREAK(KEY_ENTER)) {
|
||||
|
|
|
@ -678,6 +678,7 @@ inline int calcRESXto100(int x)
|
|||
|
||||
|
||||
#if defined(COLORLCD)
|
||||
extern const char fw_stamp[];
|
||||
extern const char vers_stamp[];
|
||||
extern const char date_stamp[];
|
||||
extern const char time_stamp[];
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(COLORLCD)
|
||||
const char fw_stamp[] = "FW" TAB ": opentx-" FLAVOUR;
|
||||
const char vers_stamp[] = "VERS" TAB ": " VERSION DISPLAY_VERSION " (" GIT_STR ")";
|
||||
const char date_stamp[] = "DATE" TAB ": " DATE;
|
||||
const char time_stamp[] = "TIME" TAB ": " TIME;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue