mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 01:05:21 +03:00
Made inclusion of CMS guard conditional on debug flag
This commit is contained in:
parent
1833bfd374
commit
a8efd77d73
11 changed files with 66 additions and 3 deletions
|
@ -54,8 +54,10 @@ static OSD_Entry cmsx_menuNavSettingsEntries[] =
|
|||
};
|
||||
|
||||
static CMS_Menu cmsx_menuNavSettings = {
|
||||
#ifdef CMS_MENU_DEBUG
|
||||
.GUARD_text = "MENUNAVSETTINGS",
|
||||
.GUARD_type = OME_MENU,
|
||||
#endif
|
||||
.onEnter = NULL,
|
||||
.onExit = NULL,
|
||||
.onGlobalExit = NULL,
|
||||
|
@ -81,8 +83,10 @@ static CMS_Menu cmsx_menuNavSettings = {
|
|||
};
|
||||
|
||||
static CMS_Menu cmsx_menuRTH = {
|
||||
#ifdef CMS_MENU_DEBUG
|
||||
.GUARD_text = "MENUNAVRTH",
|
||||
.GUARD_type = OME_MENU,
|
||||
#endif
|
||||
.onEnter = NULL,
|
||||
.onExit = NULL,
|
||||
.onGlobalExit = NULL,
|
||||
|
@ -105,8 +109,10 @@ static OSD_Entry cmsx_menuFixedWingEntries[] =
|
|||
};
|
||||
|
||||
static CMS_Menu cmsx_menuFixedWing = {
|
||||
#ifdef CMS_MENU_DEBUG
|
||||
.GUARD_text = "MENUNAVFW",
|
||||
.GUARD_type = OME_MENU,
|
||||
#endif
|
||||
.onEnter = NULL,
|
||||
.onExit = NULL,
|
||||
.onGlobalExit = NULL,
|
||||
|
@ -124,12 +130,14 @@ static OSD_Entry cmsx_menuNavigationEntries[] =
|
|||
};
|
||||
|
||||
CMS_Menu cmsx_menuNavigation = {
|
||||
#ifdef CMS_MENU_DEBUG
|
||||
.GUARD_text = "MENUNAV",
|
||||
.GUARD_type = OME_MENU,
|
||||
#endif
|
||||
.onEnter = NULL,
|
||||
.onExit = NULL,
|
||||
.onGlobalExit = NULL,
|
||||
.entries = cmsx_menuNavigationEntries
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue