From 52df8e31986ba3ccc47aa768f4f6d2cb60b1a31e Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Tue, 24 Nov 2020 10:11:05 +0100 Subject: [PATCH] Cosmetics --- 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 ddbb224aa..f4eb8d99e 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1785,7 +1785,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 @@ -1869,7 +1870,8 @@ void moveTrimsToOffsets() // copy state of 3 primary to subtrim for (uint8_t i=0; i