Merge branch 'filesystem' into master-to-fs

This commit is contained in:
Aircoookie
2020-09-03 15:02:17 +02:00
committed by GitHub
6 changed files with 220 additions and 7 deletions

View File

@@ -85,6 +85,14 @@ void WLED::loop()
handleHue();
handleBlynk();
if (presetToApply) {
StaticJsonDocument<1024> temp;
errorFlag = !readObjectFromFileUsingId("/presets.json", presetToApply, &temp);
serializeJson(temp, Serial);
deserializeState(temp.as<JsonObject>());
presetToApply = 0;
}
yield();
if (!offMode)
strip.service();