mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-19 17:22:59 +00:00
Only save the changed parts of config to disk.
This commit is contained in:
@@ -241,7 +241,7 @@ void AdminModule::handleSetConfig(const Config &c)
|
||||
break;
|
||||
}
|
||||
|
||||
service.reloadConfig();
|
||||
service.reloadConfig(SEGMENT_CONFIG);
|
||||
// Reboot 5 seconds after a config that requires rebooting is set
|
||||
if (requiresReboot) {
|
||||
DEBUG_MSG("Rebooting due to config changes\n");
|
||||
@@ -290,7 +290,7 @@ void AdminModule::handleSetModuleConfig(const ModuleConfig &c)
|
||||
break;
|
||||
}
|
||||
|
||||
service.reloadConfig();
|
||||
service.reloadConfig(SEGMENT_MODULECONFIG);
|
||||
}
|
||||
|
||||
void AdminModule::handleSetChannel(const Channel &cc)
|
||||
|
||||
Reference in New Issue
Block a user