WIP stubify to get app building without CONFIG_BLUEDROID (BLE disabled)

This commit is contained in:
geeksville
2020-07-21 11:16:14 -07:00
parent 1e86365167
commit 6aa28f55dd
9 changed files with 70 additions and 35 deletions
+2 -3
View File
@@ -17,9 +17,7 @@ void reinitBluetooth()
{
DEBUG_MSG("Starting bluetooth\n");
// FIXME - we are leaking like crazy
// AllocatorScope scope(btPool);
#ifdef CONFIG_BLUEDROID_ENABLED
// Note: these callbacks might be coming in from a different thread.
BLEServer *serve = initBLE(
[](uint32_t pin) {
@@ -32,6 +30,7 @@ void reinitBluetooth()
// Start advertising - this must be done _after_ creating all services
serve->getAdvertising()->start();
#endif
}
// Enable/disable bluetooth.