From 6011b971ad8ba69b0cbb25154f1f53e9a0a3e73f Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 15 Apr 2014 11:36:42 +0200 Subject: [PATCH] Fixes #977 --- companion/src/firmwares/opentx/opentxeeprom.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index 588bb6562..803a91b39 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -680,8 +680,9 @@ class FlightModeField: public TransformedField { } } else { - for (int i=0; i(trimBase[i])); + } } internalField.Append(new SwitchField<8>(phase.swtch, board, version)); @@ -764,7 +765,7 @@ class FlightModeField: public TransformedField { phase.trim[i] = 0; } else { - phase.trimRef[i] = index; + phase.trimRef[i] = (trim == 0 ? 0 : index/*own trim*/); phase.trimMode[i] = 0; phase.trim[i] = trim; }