minimize radioconfig file writes

This commit is contained in:
Kevin Hester
2021-03-11 18:29:47 +08:00
parent 76e2c39c63
commit a97c2ae6eb
4 changed files with 23 additions and 12 deletions

View File

@@ -104,7 +104,7 @@ bool MeshService::reloadConfig()
// 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);
configChanged.notifyObservers(NULL); // This will cause radio hardware to change freqs etc
nodeDB.saveToDisk();
return didReset;