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:
parent
cf86671997
commit
438a801eb8
21 changed files with 249 additions and 248 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue