From 566dfea9bd7422421522b5afa039cc6b7805f6e7 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 22 Mar 2015 20:54:47 +0100 Subject: [PATCH] EEPROM shift fix --- companion/src/firmwares/opentx/opentxeeprom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index 139ea6fe9..fb6eca8ca 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -3032,7 +3032,7 @@ OpenTxModelData::OpenTxModelData(ModelData & modelData, BoardEnum board, unsigne } if (IS_ARM(board) && version >= 216) { - for (int i=0; i < GetCurrentFirmware()->getCapability(Pots); i++) { + for (int i=0; i < MAX_POTS(board)+MAX_SLIDERS(board); i++) { internalField.Append(new SignedField<8>(modelData.potPosition[i])); } }