Make region changes take effect immedately

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

No files matched your search

+3
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();