1
0
Fork 0
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:
Dominic Clifton 2019-02-16 16:48:42 +01:00
parent fefa2a83e4
commit 78f38daa4f
14 changed files with 93 additions and 85 deletions

View file

@ -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},