From 228ec7722e8c25863cf3656ab07ffd5415d0b594 Mon Sep 17 00:00:00 2001 From: 3djc Date: Sat, 21 Nov 2020 13:25:24 +0100 Subject: [PATCH] Work throttle trim trims -> subtrim --- radio/src/opentx.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 673c37aa7..f6b60cb7e 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1748,7 +1748,8 @@ void copyTrimsToOffset(uint8_t ch) int16_t output = applyLimits(ch, chans[ch]) - zero; int16_t v = g_model.limitData[ch].offset; - if (g_model.limitData[ch].revert) output = -output; + if (g_model.limitData[ch].revert) + output = -output; v += (output * 125) / 128; g_model.limitData[ch].offset = limit((int16_t)-1000, (int16_t)v, (int16_t)1000); // make sure the offset doesn't go haywire @@ -1832,7 +1833,8 @@ void moveTrimsToOffsets() // copy state of 3 primary to subtrim for (uint8_t i=0; i