Skip to content

Commit a752a5e

Browse files
committed
added colValid = true;
1 parent 3e2e3c9 commit a752a5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wled00/json.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ static bool deserializeSegment(JsonObject elem, byte it, byte presetId = 0)
231231
colValid = true;
232232
} else if (hexCol[0] == 'r' && hexCol[1] == '\0') { // Random colors via JSON API in Segment object like col=["r","r","r"] · Issue #4996
233233
setRandomColor(brgbw);
234+
colValid = true;
234235
} else { //HEX string, e.g. "FFAA00"
235236
colValid = colorFromHexString(brgbw, hexCol);
236237
}

0 commit comments

Comments
 (0)