kinda ugly but BLE sw update seems reliable again

This commit is contained in:
geeksville
2020-02-24 18:09:58 -08:00
parent 6b696bfdc5
commit 8893be57df
4 changed files with 29 additions and 1 deletions

View File

@@ -336,4 +336,16 @@ void destroyMeshBluetoothService()
delete meshService;
meshFromNumCharacteristic = NULL;
}
/**
* Super skanky FIXME - when we start a software update we force the mesh service to shutdown.
* If the sw update fails, the user will have to manually reset the board to get things running again.
*/
void stopMeshBluetoothService()
{
if (meshService)
meshService->stop();
meshFromNumCharacteristic = NULL; // don't try to notify anymore
}