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

Fixed 'cast-function-type' warnings, reworked CMS function pointer juggle.

This commit is contained in:
mikeller 2019-11-26 06:12:54 +13:00
parent cf86671997
commit 438a801eb8
21 changed files with 249 additions and 248 deletions

View file

@ -88,7 +88,7 @@ static CMS_Menu cmsx_menuFeatures = {
.entries = menuFeaturesEntries,
};
static long cmsx_SaveExitMenu(displayPort_t *pDisplay, const void *ptr)
static const void *cmsx_SaveExitMenu(displayPort_t *pDisplay, const void *ptr)
{
UNUSED(ptr);
@ -97,7 +97,7 @@ static long cmsx_SaveExitMenu(displayPort_t *pDisplay, const void *ptr)
} else {
cmsMenuChange(pDisplay, &cmsx_menuSaveExit);
}
return 0;
return NULL;
}
// Main