1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Made CMS code conditional

This commit is contained in:
Bas Delfos 2017-07-29 22:26:53 +02:00
parent a74a5222ba
commit 04d08cb033

View file

@ -391,6 +391,8 @@ static CMS_Menu cmsx_menuFilterPerProfile = {
.entries = cmsx_menuFilterPerProfileEntries, .entries = cmsx_menuFilterPerProfileEntries,
}; };
#ifndef DISABLE_EXTENDED_CMS_MENUS
static uint8_t cmsx_dstPidProfile; static uint8_t cmsx_dstPidProfile;
static uint8_t cmsx_dstControlRateProfile; static uint8_t cmsx_dstControlRateProfile;
@ -458,6 +460,8 @@ CMS_Menu cmsx_menuCopyProfile = {
.entries = cmsx_menuCopyProfileEntries, .entries = cmsx_menuCopyProfileEntries,
}; };
#endif
static OSD_Entry cmsx_menuImuEntries[] = static OSD_Entry cmsx_menuImuEntries[] =
{ {
{ "-- IMU --", OME_Label, NULL, NULL, 0}, { "-- IMU --", OME_Label, NULL, NULL, 0},
@ -471,7 +475,9 @@ static OSD_Entry cmsx_menuImuEntries[] =
{"RATE", OME_Submenu, cmsMenuChange, &cmsx_menuRateProfile, 0}, {"RATE", OME_Submenu, cmsMenuChange, &cmsx_menuRateProfile, 0},
{"FILT GLB", OME_Submenu, cmsMenuChange, &cmsx_menuFilterGlobal, 0}, {"FILT GLB", OME_Submenu, cmsMenuChange, &cmsx_menuFilterGlobal, 0},
#ifndef DISABLE_EXTENDED_CMS_MENUS
{"COPY PROF", OME_Submenu, cmsMenuChange, &cmsx_menuCopyProfile, 0}, {"COPY PROF", OME_Submenu, cmsMenuChange, &cmsx_menuCopyProfile, 0},
#endif
{"BACK", OME_Back, NULL, NULL, 0}, {"BACK", OME_Back, NULL, NULL, 0},
{NULL, OME_END, NULL, NULL, 0} {NULL, OME_END, NULL, NULL, 0}