Refine extended CMS menu toggles (#3601)
This commit is contained in:
parent
5558174d33
commit
bc283cf5b9
|
@ -415,7 +415,7 @@ static CMS_Menu cmsx_menuFilterPerProfile = {
|
|||
.entries = cmsx_menuFilterPerProfileEntries,
|
||||
};
|
||||
|
||||
#ifdef USE_COPY_PROFILE_CMS_MENU
|
||||
#ifdef USE_EXTENDED_CMS_MENUS
|
||||
|
||||
static uint8_t cmsx_dstPidProfile;
|
||||
static uint8_t cmsx_dstControlRateProfile;
|
||||
|
@ -500,9 +500,9 @@ static OSD_Entry cmsx_menuImuEntries[] =
|
|||
{"RATE", OME_Submenu, cmsMenuChange, &cmsx_menuRateProfile, 0},
|
||||
|
||||
{"FILT GLB", OME_Submenu, cmsMenuChange, &cmsx_menuFilterGlobal, 0},
|
||||
#ifdef USE_COPY_PROFILE_CMS_MENU
|
||||
#ifdef USE_EXTENDED_CMS_MENUS
|
||||
{"COPY PROF", OME_Submenu, cmsMenuChange, &cmsx_menuCopyProfile, 0},
|
||||
#endif
|
||||
#endif /* USE_EXTENDED_CMS_MENUS */
|
||||
|
||||
{"BACK", OME_Back, NULL, NULL, 0},
|
||||
{NULL, OME_END, NULL, NULL, 0}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include "io/displayport_max7456.h"
|
||||
#include "io/osd.h"
|
||||
|
||||
#ifndef DISABLE_EXTENDED_CMS_OSD_MENU
|
||||
#ifdef USE_EXTENDED_CMS_MENUS
|
||||
static uint16_t osdConfig_item_pos[OSD_ITEM_COUNT];
|
||||
|
||||
static long menuOsdActiveElemsOnEnter(void)
|
||||
|
@ -208,7 +208,7 @@ CMS_Menu menuTimers = {
|
|||
.onExit = menuTimersOnExit,
|
||||
.entries = menuTimersEntries,
|
||||
};
|
||||
#endif /* DISABLE_EXTENDED_CMS_OSD_MENU */
|
||||
#endif /* USE_EXTENDED_CMS_MENUS */
|
||||
|
||||
#ifdef USE_MAX7456
|
||||
static bool displayPortProfileMax7456_invert;
|
||||
|
@ -243,7 +243,7 @@ static long cmsx_menuOsdOnExit(const OSD_Entry *self)
|
|||
OSD_Entry cmsx_menuOsdEntries[] =
|
||||
{
|
||||
{"---OSD---", OME_Label, NULL, NULL, 0},
|
||||
#ifndef DISABLE_EXTENDED_CMS_OSD_MENU
|
||||
#ifdef USE_EXTENDED_CMS_MENUS
|
||||
{"ACTIVE ELEM", OME_Submenu, cmsMenuChange, &menuOsdActiveElems, 0},
|
||||
{"TIMERS", OME_Submenu, cmsMenuChange, &menuTimers, 0},
|
||||
{"ALARMS", OME_Submenu, cmsMenuChange, &menuAlarms, 0},
|
||||
|
|
|
@ -325,6 +325,7 @@ static long saCmsConfigOpmodelByGvar(displayPort_t *pDisp, const void *self)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef USE_EXTENDED_CMS_MENUS
|
||||
static const char * const saCmsDeviceStatusNames[] = {
|
||||
"OFFL",
|
||||
"ONL V1",
|
||||
|
@ -356,6 +357,7 @@ static CMS_Menu saCmsMenuStats = {
|
|||
.onExit = NULL,
|
||||
.entries = saCmsMenuStatsEntries
|
||||
};
|
||||
#endif /* USE_EXTENDED_CMS_MENUS */
|
||||
|
||||
static OSD_TAB_t saCmsEntBand = { &saCmsBand, VTX_SMARTAUDIO_BAND_COUNT, vtx58BandNames };
|
||||
|
||||
|
@ -567,7 +569,9 @@ static OSD_Entry saCmsMenuConfigEntries[] = {
|
|||
{ "FSEL MODE", OME_TAB, saCmsConfigFreqModeByGvar, &saCmsEntFselMode, DYNAMIC },
|
||||
{ "PIT FMODE", OME_TAB, saCmsConfigPitFModeByGvar, &saCmsEntPitFMode, 0 },
|
||||
{ "POR FREQ", OME_Submenu, (CMSEntryFuncPtr)saCmsORFreqGetString, &saCmsMenuPORFreq, OPTSTRING },
|
||||
#ifdef USE_EXTENDED_CMS_MENUS
|
||||
{ "STATX", OME_Submenu, cmsMenuChange, &saCmsMenuStats, 0 },
|
||||
#endif /* USE_EXTENDED_CMS_MENUS */
|
||||
|
||||
{ "BACK", OME_Back, NULL, NULL, 0 },
|
||||
{ NULL, OME_END, NULL, NULL, 0 }
|
||||
|
@ -636,7 +640,9 @@ static OSD_Entry saCmsMenuOfflineEntries[] =
|
|||
{ "- VTX SMARTAUDIO -", OME_Label, NULL, NULL, 0 },
|
||||
|
||||
{ "", OME_Label, NULL, saCmsStatusString, DYNAMIC },
|
||||
#ifdef USE_EXTENDED_CMS_MENUS
|
||||
{ "STATX", OME_Submenu, cmsMenuChange, &saCmsMenuStats, 0 },
|
||||
#endif /* USE_EXTENDED_CMS_MENUS */
|
||||
|
||||
{ "BACK", OME_Back, NULL, NULL, 0 },
|
||||
{ NULL, OME_END, NULL, NULL, 0 }
|
||||
|
|
|
@ -165,7 +165,7 @@
|
|||
#define CURRENT_METER_ADC_PIN PA5
|
||||
#endif
|
||||
|
||||
#define DISABLE_EXTENDED_CMS_OSD_MENU
|
||||
#undef USE_EXTENDED_CMS_MENUS
|
||||
#define USE_OSD_OVER_MSP_DISPLAYPORT
|
||||
#define USE_MSP_CURRENT_METER
|
||||
|
||||
|
|
|
@ -137,6 +137,7 @@
|
|||
#define USE_CAMERA_CONTROL
|
||||
#define USE_CMS
|
||||
#define USE_COPY_PROFILE_CMS_MENU
|
||||
#define USE_EXTENDED_CMS_MENUS
|
||||
#define USE_DSHOT_DMAR
|
||||
#define USE_GYRO_OVERFLOW_CHECK
|
||||
#define USE_HUFFMAN
|
||||
|
|
Loading…
Reference in New Issue