From 1c3ebf3b34e7d1017fad2c71e64b12a92053fbd3 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 30 Aug 2019 17:17:41 +0200 Subject: [PATCH] Companion import / export issue on X9D / X9D+ / X9D+ 2019 --- 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 baad2d976..b4cef0fe3 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -2313,6 +2313,8 @@ OpenTxModelData::OpenTxModelData(ModelData & modelData, Board::Type board, unsig if (IS_TARANIS_X9E(board)) internalField.Append(new UnsignedField<32>(this, modelData.switchWarningEnable)); + else if (version >= 219 && IS_TARANIS_X9D(board)) + internalField.Append(new UnsignedField<16>(this, modelData.switchWarningEnable)); else if (!IS_HORUS(board)) internalField.Append(new UnsignedField<8>(this, modelData.switchWarningEnable)); @@ -2364,8 +2366,7 @@ OpenTxModelData::OpenTxModelData(ModelData & modelData, Board::Type board, unsig } int modulesCount = (version <= 218 ? 3 : 2); - for (int module=0; module