Skip to content

Commit e629c90

Browse files
committed
Missing UDP sync notifications bugfix.
1 parent e7f07f5 commit e629c90

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

wled00/json.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
403403
// if preset contains HTTP API call do not change presetCycCurr
404404
if (root["win"].isNull()) presetCycCurr = currentPreset;
405405
stateChanged = false; // cancel state change update (preset was set directly by applying values stored in UI JSON array)
406+
notify(callMode);
406407
} else if (root["win"].isNull() && getVal(root["ps"], &ps, 0, 0) && ps > 0 && ps < 251 && ps != currentPreset) {
407408
// b) preset ID only or preset that does not change state (use embedded cycling limits if they exist in getVal())
408409
presetCycCurr = ps;

wled00/presets.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ void handlePresets()
181181
#endif
182182

183183
releaseJSONBufferLock(); // will also clear fileDoc
184-
colorUpdated(tmpMode);
184+
if (changePreset) notify(tmpMode); // force UDP notification
185+
stateUpdated(tmpMode); // was colorUpdated() if anything breaks
185186
updateInterfaces(tmpMode);
186187
}
187188

wled00/wled.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
// version code in format yymmddb (b = daily build)
11-
#define VERSION 2212030
11+
#define VERSION 2212050
1212

1313
//uncomment this if you have a "my_config.h" file you'd like to use
1414
//#define WLED_USE_MY_CONFIG

0 commit comments

Comments
 (0)