mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-29 11:01:15 +00:00
fix a nasty sleep bug: we weren't stopping our old mesh service
so it would kinda keep living (along with the recreated one) when we come back from sleep.
This commit is contained in:
parent
bb0b2e72c8
commit
1f07d6735b
@ -332,6 +332,7 @@ BLEService *createMeshBluetoothService(BLEServer *server)
|
|||||||
void destroyMeshBluetoothService()
|
void destroyMeshBluetoothService()
|
||||||
{
|
{
|
||||||
assert(meshService);
|
assert(meshService);
|
||||||
|
meshService->stop();
|
||||||
delete meshService;
|
delete meshService;
|
||||||
|
|
||||||
meshFromNumCharacteristic = NULL;
|
meshFromNumCharacteristic = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user