Skip to content

Commit 2fddbb5

Browse files
netmindzPluto1010
authored andcommitted
Merge pull request wled#4428 from blazoncek/waterfall-fix
FX: Waterfall, Matripix & Dissolve fix
1 parent 84a5434 commit 2fddbb5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wled00/FX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ uint16_t dissolve(uint32_t color) {
708708
for (unsigned j = 0; j <= SEGLEN / 15; j++) {
709709
if (hw_random8() <= SEGMENT.intensity) {
710710
for (size_t times = 0; times < 10; times++) { //attempt to spawn a new pixel 10 times
711-
unsigned i = random16(SEGLEN);
711+
unsigned i = hw_random16(SEGLEN);
712712
if (SEGENV.aux0) { //dissolve to primary/palette
713713
if (pixels[i] == SEGCOLOR(1)) {
714714
pixels[i] = color == SEGCOLOR(0) ? SEGMENT.color_from_palette(i, true, PALETTE_SOLID_WRAP, 0) : color;

0 commit comments

Comments
 (0)