mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00:00
oops - I was previously stopping bluetooth before stopping the mesh bluetooth service
which was bad bad
This commit is contained in:
@@ -288,6 +288,7 @@ void setBluetoothEnable(bool on)
|
||||
else
|
||||
{
|
||||
// We have to totally teardown our bluetooth objects to prevent leaks
|
||||
stopMeshBluetoothService(); // Must do before shutting down bluetooth
|
||||
deinitBLE();
|
||||
destroyMeshBluetoothService(); // must do after deinit, because it frees our service
|
||||
Serial.printf("Shutdown BT: %u heap size\n", ESP.getFreeHeap());
|
||||
|
||||
Reference in New Issue
Block a user