1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Remove historical OSD_CALLS_CMS

This was a part of the original code, and was left here so there will
be an option to call CMS code from OSD task so that there is no need
for a separate CMS task.
It was eventually unused; there are couples of important logics around
cmsOpenMenu so doing this will require the same amount of code.
This commit is contained in:
jflyper 2016-11-08 12:14:27 +09:00
parent 576ad19914
commit bf5430a2bd

View file

@ -608,13 +608,6 @@ void osdUpdate(uint32_t currentTime)
static uint8_t lastSec = 0;
uint8_t sec;
#ifdef OSD_CALLS_CMS
// detect enter to menu
if (IS_MID(THROTTLE) && IS_HI(YAW) && IS_HI(PITCH) && !ARMING_FLAG(ARMED)) {
cmsOpenMenu();
}
#endif
// detect arm/disarm
if (armState != ARMING_FLAG(ARMED)) {
if (ARMING_FLAG(ARMED))