Only save and reboot while a transaction isnt open

This commit is contained in:
Ben Meadors
2022-11-20 19:50:45 -06:00
parent e8a05d1874
commit b1ba807ec9
7 changed files with 51 additions and 30 deletions

View File

@@ -69,7 +69,7 @@ class MeshService
bool reloadConfig(int saveWhat=SEGMENT_CONFIG | SEGMENT_MODULECONFIG | SEGMENT_DEVICESTATE | SEGMENT_CHANNELS);
/// The owner User record just got updated, update our node DB and broadcast the info into the mesh
void reloadOwner();
void reloadOwner(bool shouldSave = true);
/// Called when the user wakes up our GUI, normally sends our latest location to the mesh (if we have it), otherwise at least
/// sends our owner