From 8c6bfb208bfa010d157132898372cc53db43f1c4 Mon Sep 17 00:00:00 2001 From: openfsguruh Date: Sat, 21 Dec 2013 10:57:33 +0100 Subject: [PATCH] reverted throttle change for TARANIS fixed compile issue for PCBTARANIS, because rawAnas didn't exist anymore for PCBTARANIS. --- radio/src/opentx.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 745893911..af664925e 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -3829,8 +3829,11 @@ void doMixerCalculations() if (val<0) val=0; // prevent val be negative, which would corrupt throttle trace and timers; could occur if safetyswitch is smaller than limits } else { - // val = RESX + calibratedStick[g_model.thrTraceSrc == 0 ? THR_STICK : g_model.thrTraceSrc+NUM_STICKS-1]; +#ifdef PCBTARANIS + val = RESX + calibratedStick[g_model.thrTraceSrc == 0 ? THR_STICK : g_model.thrTraceSrc+NUM_STICKS-1]; +#else val = RESX + rawAnas[g_model.thrTraceSrc == 0 ? THR_STICK : g_model.thrTraceSrc+NUM_STICKS-1]; +#endif } #if !defined(CPUM64)