don't let phones send down fatally invalid RadioConfig records
and if a phone did in the past, fixup the garbage we saved in flash
This commit is contained in:
1 parent
a73f466473
commit
7dabad1b70
4 files changed
+36
-23
No files matched your search
@@ -217,6 +217,7 @@ void MeshService::loop()
|
||||
void MeshService::reloadConfig()
|
||||
{
|
||||
// If we can successfully set this radio to these settings, save them to disk
|
||||
nodeDB.resetRadioConfig(); // Don't let the phone send us fatally bad settings
|
||||
radio.reloadConfig();
|
||||
nodeDB.saveToDisk();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user