PhoneAPIs shouldn't register for messages until they have clients

This commit is contained in:
Kevin Hester
2021-03-25 07:51:54 +08:00
parent ab325d6d2c
commit 0261c243e0
7 changed files with 64 additions and 38 deletions

View File

@@ -487,7 +487,6 @@ void reinitBluetooth()
DEBUG_MSG("Starting bluetooth\n");
if (isFirstTime) {
bluetoothPhoneAPI = new BluetoothPhoneAPI();
bluetoothPhoneAPI->init();
}
// FIXME - if waking from light sleep, only esp_nimble_hci_init?