Skip to content

Commit

Permalink
Allow trainer modes OFF and Master-Multi for all radios
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower committed Apr 5, 2022
1 parent 581cb25 commit 87b541b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions companion/src/firmwares/modeldata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1647,9 +1647,7 @@ bool ModelData::isTrainerModeAvailable(const GeneralSettings & generalSettings,
bool ret = true;
const Board::Type board = firmware->getBoard();

if (!IS_FLYSKY_NV14(board) && value == TRAINER_MODE_OFF)
ret = false;
else if (!IS_TARANIS(board) ||
if (!IS_TARANIS(board) ||
IS_ACCESS_RADIO(board, Firmware::getCurrentVariant()->getId())) {
if (value >= TRAINER_MODE_MASTER_SBUS_EXTERNAL_MODULE &&
value <= TRAINER_MODE_MASTER_BATTERY_COMPARTMENT)
Expand All @@ -1665,8 +1663,6 @@ bool ModelData::isTrainerModeAvailable(const GeneralSettings & generalSettings,
value <= TRAINER_MODE_SLAVE_BLUETOOTH)
ret = false;

if (!IS_RADIOMASTER_TX16S(board) && value == TRAINER_MODE_MULTI) ret = false;

return ret;
}

Expand Down

0 comments on commit 87b541b

Please sign in to comment.