mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 23:05:19 +03:00
Add OME_Funcall to call a function.
With the introduction of the CME_Menu, OME_Submenu became unsuitable for general function calls. Actually, it works and call the designated function, but attempt to externally traverse the menu structure fail because it expects CME_Menu * as data for OME_Submenu.
This commit is contained in:
parent
c12942ed41
commit
576ad19914
3 changed files with 4 additions and 1 deletions
|
@ -93,7 +93,7 @@ static OSD_Entry cmsx_menuBlackboxEntries[] =
|
|||
{ "RATE DENOM", OME_UINT8, NULL, &(OSD_UINT8_t){ &masterConfig.blackbox_rate_denom,1,32,1 }, 0 },
|
||||
|
||||
#ifdef USE_FLASHFS
|
||||
{ "ERASE FLASH", OME_Submenu, cmsx_EraseFlash, NULL, 0 },
|
||||
{ "ERASE FLASH", OME_Funcall, cmsx_EraseFlash, NULL, 0 },
|
||||
#endif // USE_FLASHFS
|
||||
|
||||
{ "BACK", OME_Back, NULL, NULL, 0 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue