1
0
Fork 0
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:
Alberto García Hierro 2018-03-05 19:48:54 +00:00
parent ae05b1c993
commit 741b6c3242
12 changed files with 81 additions and 68 deletions

View file

@ -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 = {