ble works again after sleep - but we are still leaking

This commit is contained in:
geeksville
2020-02-23 13:20:46 -08:00
parent 5f88174dbf
commit f9ce6a53e1
8 changed files with 61 additions and 2 deletions

View File

@@ -192,7 +192,8 @@ class MySecurity : public BLESecurityCallbacks
void deinitBLE()
{
batteryLevelC = NULL; // Don't let anyone generate bogus notifies
destroyUpdateService();
BLEDevice::deinit(false);
btPool.reset();
}