Prevent X9E simu crash when BT is enabled (#5966)

* Better 'non horus BT' XE handling

* Cleanup

* Adjust BT message for X9E

* [Companion][HardwarePanel][X9E] Change BT Mode options to OFF/Enabled, X9E only.
This commit is contained in:
3djc
2018-06-13 22:25:22 +02:00
committed by Bertrand Songis
parent 7aca3eb5b7
commit 6898efcc02
16 changed files with 66 additions and 129 deletions
+2
View File
@@ -262,6 +262,7 @@ void bluetoothReceiveTrainer()
#if defined(PCBX9E) && !defined(USEHORUSBT)
void bluetoothWakeup(void)
{
#if !defined(SIMU)
if (!g_eeGeneral.bluetoothMode) {
if (bluetoothState != BLUETOOTH_INIT) {
bluetoothDone();
@@ -317,6 +318,7 @@ void bluetoothWakeup(void)
bluetoothSendTrainer();
}
}
#endif
}
#else // PCBX9E
void bluetoothWakeup()