fix(tx16s): turn on AUX2 power when used for BT (#5353)

This commit is contained in:
3djc
2024-08-13 11:22:27 +10:00
committed by GitHub
parent 5208124650
commit c231efcb7a
3 changed files with 21 additions and 0 deletions
+9
View File
@@ -413,6 +413,15 @@ void Bluetooth::wakeup()
return;
}
#if defined(BT_PWR_GPIO)
if (g_eeGeneral.bluetoothMode == BLUETOOTH_OFF) {
bluetoothDisable();
state = BLUETOOTH_STATE_OFF;
wakeupTime = now + 10; /* 100ms */
return;
}
#endif
if (g_eeGeneral.bluetoothMode == BLUETOOTH_OFF ||
(g_eeGeneral.bluetoothMode == BLUETOOTH_TRAINER &&
!IS_BLUETOOTH_TRAINER())) {