mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Made CMS code conditional
This commit is contained in:
parent
a74a5222ba
commit
04d08cb033
1 changed files with 6 additions and 0 deletions
|
@ -391,6 +391,8 @@ static CMS_Menu cmsx_menuFilterPerProfile = {
|
|||
.entries = cmsx_menuFilterPerProfileEntries,
|
||||
};
|
||||
|
||||
#ifndef DISABLE_EXTENDED_CMS_MENUS
|
||||
|
||||
static uint8_t cmsx_dstPidProfile;
|
||||
static uint8_t cmsx_dstControlRateProfile;
|
||||
|
||||
|
@ -458,6 +460,8 @@ CMS_Menu cmsx_menuCopyProfile = {
|
|||
.entries = cmsx_menuCopyProfileEntries,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
static OSD_Entry cmsx_menuImuEntries[] =
|
||||
{
|
||||
{ "-- IMU --", OME_Label, NULL, NULL, 0},
|
||||
|
@ -471,7 +475,9 @@ static OSD_Entry cmsx_menuImuEntries[] =
|
|||
{"RATE", OME_Submenu, cmsMenuChange, &cmsx_menuRateProfile, 0},
|
||||
|
||||
{"FILT GLB", OME_Submenu, cmsMenuChange, &cmsx_menuFilterGlobal, 0},
|
||||
#ifndef DISABLE_EXTENDED_CMS_MENUS
|
||||
{"COPY PROF", OME_Submenu, cmsMenuChange, &cmsx_menuCopyProfile, 0},
|
||||
#endif
|
||||
|
||||
{"BACK", OME_Back, NULL, NULL, 0},
|
||||
{NULL, OME_END, NULL, NULL, 0}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue