mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Drastically reduce the CMS RAM usage.
Previously the runtime page state was mixed with the page configuration. This resolves this by: a) making the configuration entries constant so they do not need to be in RAM. b) Maintaining page state independently.
This commit is contained in:
parent
fefa2a83e4
commit
78f38daa4f
14 changed files with 93 additions and 85 deletions
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include "fc/config.h"
|
||||
|
||||
static OSD_Entry cmsx_menuSaveExitEntries[] =
|
||||
static const OSD_Entry cmsx_menuSaveExitEntries[] =
|
||||
{
|
||||
{ "-- SAVE/EXIT --", OME_Label, NULL, NULL, 0},
|
||||
{"EXIT", OME_OSD_Exit, cmsMenuExit, (void *)CMS_EXIT, 0},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue