fix(cpn): Handling of the 'show splash' setting for B&W radios in Companion (#3336)

* Fix handling of the 'show splash' setting for B&W radios in Companion.

* Remove 'TODO' comment.
This commit is contained in:
philmoz
2023-03-13 11:05:12 +10:00
committed by GitHub
parent a28e4b2383
commit 6e427615dd
6 changed files with 15 additions and 51 deletions
@@ -3088,10 +3088,8 @@ OpenTxGeneralData::OpenTxGeneralData(GeneralSettings & generalData, Board::Type
internalField.Append(new UnsignedField<3>(this, generalData.internalModuleBaudrate));
if (IS_FAMILY_HORUS_OR_T16(board))
internalField.Append(new SpareBitsField<3>(this));
else if (IS_TARANIS(board))
internalField.Append(new SignedField<3>(this, generalData.splashDuration));
else
internalField.Append(new UnsignedField<3>(this, generalData.splashMode)); // TODO
internalField.Append(new SignedField<3>(this, generalData.splashMode));
internalField.Append(new SignedField<2>(this, (int &)generalData.hapticMode));
internalField.Append(new SignedField<8>(this, generalData.switchesDelay));