First preset progress

This commit is contained in:
cschwinne
2020-05-05 09:01:09 +02:00
parent 71886c162b
commit dfc99faea8
7 changed files with 192 additions and 11 deletions

View File

@@ -81,6 +81,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();