Skip to content

Commit

Permalink
fix: [companion] Throttle trace source conversion error (#1401)
Browse files Browse the repository at this point in the history
Accounts now for EX3 & EX4

Resolves #1398
  • Loading branch information
raphaelcoeffic authored and pfeerick committed Jan 14, 2022
1 parent 5a486f0 commit fac0eed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions companion/src/firmwares/opentx/opentxeeprom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit fac0eed

Please sign in to comment.