mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
Update AdminModule.cpp
This commit is contained in:
parent
fb4f9bdc40
commit
24244e8474
@ -487,7 +487,10 @@ void AdminModule::reboot(int32_t seconds)
|
|||||||
void AdminModule::saveChanges(int saveWhat, bool shouldReboot)
|
void AdminModule::saveChanges(int saveWhat, bool shouldReboot)
|
||||||
{
|
{
|
||||||
if (!hasOpenEditTransaction) {
|
if (!hasOpenEditTransaction) {
|
||||||
|
DEBUG_MSG("Saving changes to disk\n");
|
||||||
service.reloadConfig(saveWhat); // Calls saveToDisk among other things
|
service.reloadConfig(saveWhat); // Calls saveToDisk among other things
|
||||||
|
} else {
|
||||||
|
DEBUG_MSG("Delaying save of changes to disk until the open transaction is committed\n");
|
||||||
}
|
}
|
||||||
if (shouldReboot)
|
if (shouldReboot)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user