From dc3d46392515dd9d718cc8645d4e3ae77ecd1c1f Mon Sep 17 00:00:00 2001 From: netmindz Date: Thu, 16 Jan 2025 15:52:21 +0000 Subject: [PATCH] Merge pull request #4428 from blazoncek/waterfall-fix FX: Waterfall, Matripix & Dissolve fix --- package-lock.json | 4 ++-- wled00/FX.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 70344dec2..1f6784583 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wled", - "version": "0.15.0", + "version": "0.15.1.beta1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "wled", - "version": "0.15.0", + "version": "0.15.1.beta1", "license": "ISC", "dependencies": { "clean-css": "^5.3.3", diff --git a/wled00/FX.cpp b/wled00/FX.cpp index ccc8e2d83..cb829f731 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -612,7 +612,7 @@ uint16_t dissolve(uint32_t color) { for (int j = 0; j <= SEGLEN / 15; j++) { if (random8() <= SEGMENT.intensity) { for (size_t times = 0; times < 10; times++) { //attempt to spawn a new pixel 10 times - unsigned i = random16(SEGLEN); + unsigned i = hw_random16(SEGLEN); if (SEGENV.aux0) { //dissolve to primary/palette if (pixels[i] == SEGCOLOR(1)) { pixels[i] = color == SEGCOLOR(0) ? SEGMENT.color_from_palette(i, true, PALETTE_SOLID_WRAP, 0) : color;