diff --git a/companion/src/firmwares/generalsettings.cpp b/companion/src/firmwares/generalsettings.cpp index 8fbf2b788ac..84f8ce9d2f5 100644 --- a/companion/src/firmwares/generalsettings.cpp +++ b/companion/src/firmwares/generalsettings.cpp @@ -837,6 +837,8 @@ bool GeneralSettings::convertLegacyConfiguration(Board::Type board) else idx = Boards::getInputPotIndex(i + 1, board); + // qDebug() << "i:" << i << "idx:" << idx << "pot name:" << potName[i]; + if (idx >= 0) { inputConfig[idx].type = Board::AIT_FLEX; YamlValidateName(potName[i], board); @@ -852,7 +854,7 @@ bool GeneralSettings::convertLegacyConfiguration(Board::Type board) for (int i = 0; i < CPN_MAX_SLIDERS && i < Boards::getCapability(board, Board::Sliders); i++) { int offset = 0; - if (IS_TARANIS_X9E(board) || IS_HORUS_X12S(board)) { + if (IS_HORUS_X12S(board)) { // 0 - 1 extra sliders eg L1 - L2 or S1 - S2 // 2 - 3 LS - RS // hw json flips the pairs @@ -863,6 +865,9 @@ bool GeneralSettings::convertLegacyConfiguration(Board::Type board) } int idx = Boards::getInputSliderIndex(i + offset + 1, board); + + // qDebug() << "i:" << i << "idx:" << idx << "slider name:" << sliderName[i]; + if (idx >= 0) { inputConfig[idx].type = Board::AIT_FLEX; YamlValidateName(sliderName[i], board); diff --git a/companion/src/firmwares/opentx/opentxeeprom.cpp b/companion/src/firmwares/opentx/opentxeeprom.cpp index 2188d56ace3..b4d1320af84 100644 --- a/companion/src/firmwares/opentx/opentxeeprom.cpp +++ b/companion/src/firmwares/opentx/opentxeeprom.cpp @@ -495,15 +495,15 @@ class SourcesConversionTable: public ConversionTable { offset -= 2; } else if (IS_TARANIS_X9E(board)) { - if (i == 6) - offset -= 2; // F3 -> F1 as F3 dropped at version 2.?? and F3 not on factory radio or included in radio hw json - else if (i >= 10 && i <= 11) // this range could be affected if F3 dropped whilst still supporting binaries - offset -= 4; + if (i >= 8 && i <= 9) + offset += 2; + else if (i >= 10 && i <= 11) + offset -= 2; } // end ADC refactor shuffles addConversion(RawSource(SOURCE_TYPE_STICK, i + offset), val++); -// qDebug() << "i:" << i << "offset:" << offset << "index:" << i + offset << "desc:" << RawSource(SOURCE_TYPE_STICK, i + offset).toString() << "val:" << val; + //qDebug() << "i:" << i << "offset:" << offset << "index:" << i + offset << "desc:" << RawSource(SOURCE_TYPE_STICK, i + offset).toString() << "val:" << val; } for (int i=0; i