fix: [companion] Throttle trace source conversion error (#1401)

Accounts now for EX3 & EX4

Resolves #1398
This commit is contained in:
Raphael Coeffic
2022-01-13 11:51:37 +10:00
committed by GitHub
parent db392408b9
commit 8150b00823
@@ -2910,10 +2910,17 @@ void OpenTxModelData::afterImport()
}
}
// EX1 / EX2
if (version <= 218 && IS_HORUS_X10(board) && modelData.thrTraceSrc > 3) {
modelData.thrTraceSrc += 2;
}
// EX3 / EX4
if (version <= 220 && (IS_HORUS_X10(board) || IS_FAMILY_T16(board)) &&
modelData.thrTraceSrc > 5) {
modelData.thrTraceSrc += 2;
}
// TODO remove when enum not radio specific requires eeprom change and conversion
// Note: this must mirror reverse beforeExport
if (!IS_FLYSKY_NV14(board))