From b5cdd6036798341be028aed172b476cbb3b6d648 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Mon, 30 Jun 2014 17:03:59 +0200 Subject: [PATCH] Fixes #1407 - Strange input interaction when Throttle trim idle only --- radio/src/opentx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 2cd242cf6..588cf2773 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1640,7 +1640,7 @@ FORCEINLINE void evalTrims() if (i==THR_STICK && g_model.thrTrim) { if (g_model.throttleReversed) trim = -trim; - int16_t v = anas[i]; + int16_t v = getValue(MIXSRC_Thr); int32_t vv = ((int32_t)trim-TRIM_MIN)*(RESX-v)>>(RESX_SHIFT+1); trim = vv; }