1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Merge pull request #4521 from martinbudden/bf_cms_onglobalexit

Remove almost entirely unused CMS ononGlobalExit function
This commit is contained in:
Michael Keller 2017-11-10 10:35:13 +13:00 committed by GitHub
commit 364afcbf25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 3 additions and 39 deletions

View file

@ -167,7 +167,6 @@ static CMS_Menu cmsx_menuPid = {
#endif
.onEnter = cmsx_PidOnEnter,
.onExit = cmsx_PidWriteback,
.onGlobalExit = NULL,
.entries = cmsx_menuPidEntries
};
@ -230,7 +229,6 @@ static CMS_Menu cmsx_menuRateProfile = {
#endif
.onEnter = cmsx_RateProfileOnEnter,
.onExit = cmsx_RateProfileWriteback,
.onGlobalExit = NULL,
.entries = cmsx_menuRateProfileEntries
};
@ -301,7 +299,6 @@ static CMS_Menu cmsx_menuProfileOther = {
#endif
.onEnter = cmsx_profileOtherOnEnter,
.onExit = cmsx_profileOtherOnExit,
.onGlobalExit = NULL,
.entries = cmsx_menuProfileOtherEntries,
};
@ -356,7 +353,6 @@ static CMS_Menu cmsx_menuFilterGlobal = {
#endif
.onEnter = cmsx_menuGyro_onEnter,
.onExit = cmsx_menuGyro_onExit,
.onGlobalExit = NULL,
.entries = cmsx_menuFilterGlobalEntries,
};
@ -409,7 +405,6 @@ static CMS_Menu cmsx_menuFilterPerProfile = {
#endif
.onEnter = cmsx_FilterPerProfileRead,
.onExit = cmsx_FilterPerProfileWriteback,
.onGlobalExit = NULL,
.entries = cmsx_menuFilterPerProfileEntries,
};
@ -480,7 +475,6 @@ CMS_Menu cmsx_menuCopyProfile = {
#endif
.onEnter = cmsx_menuCopyProfile_onEnter,
.onExit = NULL,
.onGlobalExit = NULL,
.entries = cmsx_menuCopyProfileEntries,
};
@ -514,7 +508,6 @@ CMS_Menu cmsx_menuImu = {
#endif
.onEnter = cmsx_menuImu_onEnter,
.onExit = cmsx_menuImu_onExit,
.onGlobalExit = NULL,
.entries = cmsx_menuImuEntries,
};