Tidied up CMS related #defines
This commit is contained in:
parent
30dfe0c3a5
commit
2a2960f584
|
@ -332,8 +332,7 @@ void fcTasksInit(void)
|
||||||
setTaskEnabled(TASK_BST_MASTER_PROCESS, true);
|
setTaskEnabled(TASK_BST_MASTER_PROCESS, true);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CMS
|
#ifdef CMS
|
||||||
// XXX Should check FEATURE
|
setTaskEnabled(TASK_CMS, feature(FEATURE_OSD) || feature(FEATURE_DASHBOARD));
|
||||||
setTaskEnabled(TASK_CMS, true);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -589,7 +589,7 @@ void dashboardUpdate(uint32_t currentTime)
|
||||||
{
|
{
|
||||||
static uint8_t previousArmedState = 0;
|
static uint8_t previousArmedState = 0;
|
||||||
|
|
||||||
#ifdef OLEDCMS
|
#ifdef CMS
|
||||||
if (displayIsGrabbed(displayPort)) {
|
if (displayIsGrabbed(displayPort)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -707,7 +707,7 @@ void dashboardInit(rxConfig_t *rxConfigToUse)
|
||||||
delay(200);
|
delay(200);
|
||||||
|
|
||||||
displayPort = displayPortOledInit();
|
displayPort = displayPortOledInit();
|
||||||
#if defined(CMS) && defined(OLEDCMS)
|
#if defined(CMS)
|
||||||
cmsDisplayPortRegister(displayPort);
|
cmsDisplayPortRegister(displayPort);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -97,12 +97,9 @@
|
||||||
#define CMS
|
#define CMS
|
||||||
#define CMS_MAX_DEVICE 4
|
#define CMS_MAX_DEVICE 4
|
||||||
|
|
||||||
// Use external display to run CMS
|
// Use external display connected by MSP to run CMS
|
||||||
#define USE_MSP_DISPLAYPORT
|
#define USE_MSP_DISPLAYPORT
|
||||||
|
|
||||||
// USE I2C OLED display to run CMS
|
|
||||||
#define OLEDCMS
|
|
||||||
|
|
||||||
// OSD define info:
|
// OSD define info:
|
||||||
// feature name (includes source) -> MAX_OSD, used in target.mk
|
// feature name (includes source) -> MAX_OSD, used in target.mk
|
||||||
// include the osd code
|
// include the osd code
|
||||||
|
|
|
@ -144,12 +144,9 @@
|
||||||
// Configuratoin Menu System
|
// Configuratoin Menu System
|
||||||
#define CMS
|
#define CMS
|
||||||
|
|
||||||
// Use external display to run CMS
|
// Use external display connected by MSP to run CMS
|
||||||
#define USE_MSP_DISPLAYPORT
|
#define USE_MSP_DISPLAYPORT
|
||||||
|
|
||||||
// USE I2C OLED display to run CMS
|
|
||||||
#define OLEDCMS
|
|
||||||
|
|
||||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
|
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
|
||||||
|
|
||||||
#define USE_SERVOS
|
#define USE_SERVOS
|
||||||
|
|
|
@ -145,8 +145,5 @@
|
||||||
// Configuratoin Menu System
|
// Configuratoin Menu System
|
||||||
#define CMS
|
#define CMS
|
||||||
|
|
||||||
// Use external display to run CMS
|
// Use external display connected by MSP to run CMS
|
||||||
#define USE_MSP_DISPLAYPORT
|
#define USE_MSP_DISPLAYPORT
|
||||||
|
|
||||||
// USE I2C OLED display to run CMS
|
|
||||||
#define OLEDCMS
|
|
||||||
|
|
Loading…
Reference in New Issue