From a8d4ba5758b1e14b582e2090bfc4a643b6d68385 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 22 Jul 2015 18:58:12 +0200 Subject: [PATCH] Warning removed. HELI option really needs to be tested --- radio/src/mixer.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/radio/src/mixer.cpp b/radio/src/mixer.cpp index 72a2b3f98..8ea95926a 100644 --- a/radio/src/mixer.cpp +++ b/radio/src/mixer.cpp @@ -371,16 +371,10 @@ void evalInputs(uint8_t mode) { BeepANACenter anaCenter = 0; -#if defined(HELI) +#if defined(HELI) && !defined(VIRTUALINPUTS) uint16_t d = 0; if (g_model.swashR.value) { -#if defined(VIRTUALINPUTS) - int ele = (int16_t)anaIn(ELE_STICK); - int ail = (int16_t)anaIn(AIL_STICK); - uint32_t v = (ele*ele) + (ail*ail); -#else uint32_t v = (int32_t(calibratedStick[ELE_STICK])*calibratedStick[ELE_STICK] + int32_t(calibratedStick[AIL_STICK])*calibratedStick[AIL_STICK]); -#endif uint32_t q = calc100toRESX(g_model.swashR.value); q *= q; if (v > q) {