mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 01:05:21 +03:00
Use macros for the BACK and END items in CMS menus
Will make future changes cleaner
This commit is contained in:
parent
ae05b1c993
commit
741b6c3242
12 changed files with 81 additions and 68 deletions
|
@ -66,8 +66,8 @@ static OSD_Entry cmsx_menuRcEntries[] =
|
|||
{ "AUX3", OME_INT16, NULL, &(OSD_INT16_t){ &rcData[AUX3], 1, 2500, 0 }, DYNAMIC },
|
||||
{ "AUX4", OME_INT16, NULL, &(OSD_INT16_t){ &rcData[AUX4], 1, 2500, 0 }, DYNAMIC },
|
||||
|
||||
{ "BACK", OME_Back, NULL, NULL, 0},
|
||||
{NULL, OME_END, NULL, NULL, 0}
|
||||
OSD_BACK_ENTRY,
|
||||
OSD_END_ENTRY,
|
||||
};
|
||||
|
||||
CMS_Menu cmsx_menuRcPreview = {
|
||||
|
@ -102,8 +102,8 @@ static OSD_Entry menuMiscEntries[]=
|
|||
|
||||
{ "RC PREV", OME_Submenu, cmsMenuChange, &cmsx_menuRcPreview, 0},
|
||||
|
||||
{ "BACK", OME_Back, NULL, NULL, 0},
|
||||
{ NULL, OME_END, NULL, NULL, 0}
|
||||
OSD_BACK_ENTRY,
|
||||
OSD_END_ENTRY,
|
||||
};
|
||||
|
||||
CMS_Menu cmsx_menuMisc = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue