From 7fc1372f8fc065a0ebac2f525c61c749866cc5e4 Mon Sep 17 00:00:00 2001 From: Andre Bernet Date: Tue, 29 Apr 2014 16:17:16 +0200 Subject: [PATCH] Some fields were broken for REV4a and REVPLUS --- companion/src/firmwares/opentx/opentxeeprom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index b74433cff..65d5140d6 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -698,7 +698,7 @@ class FlightModeField: public TransformedField { for (int i=0; i(trimExt[i])); } - else if (board == BOARD_TARANIS && version >= 216) { + else if (IS_TARANIS(board) && version >= 216) { for (int i=0; i(phase.trim[i])); internalField.Append(new UnsignedField<5>(trimMode[i])); @@ -739,7 +739,7 @@ class FlightModeField: public TransformedField { virtual void beforeExport() { for (int i=0; i= 216) { + if (IS_TARANIS(board) && version >= 216) { if (phase.trimMode[i] < 0) trimMode[i] = TRIM_MODE_NONE; else @@ -767,7 +767,7 @@ class FlightModeField: public TransformedField { virtual void afterImport() { for (int i=0; i= 216) { + if (IS_TARANIS(board) && version >= 216) { if (trimMode[i] == TRIM_MODE_NONE) { phase.trimMode[i] = -1; }