Make region changes take effect immedately

This commit is contained in:
Kevin Hester
2020-10-29 13:26:36 +08:00
parent f698883c02
commit cfcb62bd18
3 changed files with 12 additions and 11 deletions

View File

@@ -198,7 +198,10 @@ void MeshService::loop()
bool MeshService::reloadConfig()
{
// If we can successfully set this radio to these settings, save them to disk
// This will also update the region as needed
bool didReset = nodeDB.resetRadioConfig(); // Don't let the phone send us fatally bad settings
configChanged.notifyObservers(NULL);
nodeDB.saveToDisk();