diff --git a/wled00/json.cpp b/wled00/json.cpp index 3b40c3e8..b253746f 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -403,6 +403,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId) // if preset contains HTTP API call do not change presetCycCurr if (root["win"].isNull()) presetCycCurr = currentPreset; stateChanged = false; // cancel state change update (preset was set directly by applying values stored in UI JSON array) + notify(callMode); } else if (root["win"].isNull() && getVal(root["ps"], &ps, 0, 0) && ps > 0 && ps < 251 && ps != currentPreset) { // b) preset ID only or preset that does not change state (use embedded cycling limits if they exist in getVal()) presetCycCurr = ps; diff --git a/wled00/presets.cpp b/wled00/presets.cpp index 826f3395..7db00a87 100644 --- a/wled00/presets.cpp +++ b/wled00/presets.cpp @@ -181,7 +181,8 @@ void handlePresets() #endif releaseJSONBufferLock(); // will also clear fileDoc - colorUpdated(tmpMode); + if (changePreset) notify(tmpMode); // force UDP notification + stateUpdated(tmpMode); // was colorUpdated() if anything breaks updateInterfaces(tmpMode); } diff --git a/wled00/wled.h b/wled00/wled.h index 13fd7139..e262f037 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2212030 +#define VERSION 2212050 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG