Rename 'doSerializeConfig' to 'configNeedsWrite'

Clarify the name and usage of this flag, as the function name has
changed out from underneath it.
This commit is contained in:
Will Miles
2025-03-23 15:16:52 -04:00
parent e21a09cec9
commit 9c8f8c645e
7 changed files with 11 additions and 11 deletions

View File

@@ -193,14 +193,14 @@ void WLED::loop()
if (aligned) strip.makeAutoSegments();
else strip.fixInvalidSegments();
BusManager::setBrightness(bri); // fix re-initialised bus' brightness
doSerializeConfig = true;
configNeedsWrite = true;
}
if (loadLedmap >= 0) {
strip.deserializeMap(loadLedmap);
loadLedmap = -1;
}
yield();
if (doSerializeConfig) serializeConfigToFS();
if (configNeedsWrite) serializeConfigToFS();
yield();
handleWs();
@@ -223,7 +223,7 @@ void WLED::loop()
}
#endif
if (doReboot && (!doInitBusses || !doSerializeConfig)) // if busses have to be inited & saved, wait until next iteration
if (doReboot && (!doInitBusses || !configNeedsWrite)) // if busses have to be inited & saved, wait until next iteration
reset();
// DEBUG serial logging (every 30s)