Separate FS write from serializeConfig

Break the actual JSON assembly apart from the file writing code.  This
permits calling it in other contexts, allowing us to pull the live
config data even if the filesystem is out of date.
This commit is contained in:
Will Miles
2025-03-23 15:15:52 -04:00
parent a0d1a8cbc4
commit e21a09cec9
4 changed files with 18 additions and 13 deletions

View File

@@ -200,7 +200,7 @@ void WLED::loop()
loadLedmap = -1;
}
yield();
if (doSerializeConfig) serializeConfig();
if (doSerializeConfig) serializeConfigToFS();
yield();
handleWs();