1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Remove almost entirely unused CMS ononGlobalExit function

This commit is contained in:
Martin Budden 2017-11-09 17:40:52 +00:00
parent 9a5cefbfa3
commit 9a9884e4af
12 changed files with 3 additions and 39 deletions

View file

@ -52,8 +52,9 @@ static long cmsx_Ledstrip_FeatureRead(void)
return 0;
}
static long cmsx_Ledstrip_FeatureWriteback(void)
static long cmsx_Ledstrip_FeatureWriteback(const OSD_Entry *self)
{
UNUSED(self);
if (featureRead) {
if (cmsx_FeatureLedstrip)
featureSet(FEATURE_LED_STRIP);
@ -77,8 +78,7 @@ CMS_Menu cmsx_menuLedstrip = {
.GUARD_text = "MENULED",
.GUARD_type = OME_MENU,
.onEnter = cmsx_Ledstrip_FeatureRead,
.onExit = NULL,
.onGlobalExit = cmsx_Ledstrip_FeatureWriteback,
.onExit = cmsx_Ledstrip_FeatureWriteback,
.entries = cmsx_menuLedstripEntries
};
#endif // LED_STRIP