From bf5430a2bd6def572238b029fdee6c62e6f76f8e Mon Sep 17 00:00:00 2001 From: jflyper Date: Tue, 8 Nov 2016 12:14:27 +0900 Subject: [PATCH] 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. --- src/main/io/osd.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/io/osd.c b/src/main/io/osd.c index ce01260dc9..fc7eea3a03 100755 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -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))