Add BT mode handling (#5926)

Enable BT for Xlite and X7
This commit is contained in:
3djc
2018-06-02 18:15:37 +02:00
committed by Bertrand Songis
parent e3f2664440
commit a87722b078
5 changed files with 24 additions and 10 deletions
@@ -134,7 +134,6 @@ class GeneralSettings {
unsigned int mAhWarn;
unsigned int mAhUsed;
unsigned int globalTimer;
bool bluetoothEnable;
char bluetoothName[10+1];
unsigned int bluetoothBaudrate;
unsigned int bluetoothMode;
@@ -3836,7 +3836,7 @@ OpenTxGeneralData::OpenTxGeneralData(GeneralSettings & generalData, Board::Type
internalField.Append(new ZCharField<10>(this, generalData.bluetoothName, "Bluetooth name"));
}
else if (IS_TARANIS_X9E(board) && version >= 217) {
internalField.Append(new BoolField<8>(this, generalData.bluetoothEnable));
internalField.Append(new UnsignedField<8>(this, generalData.bluetoothMode));
internalField.Append(new ZCharField<10>(this, generalData.bluetoothName, "Bluetooth name"));
}