Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ void mode_running_random(void) {
uint16_t PRNG16 = SEGENV.aux0;

unsigned z = it % zoneSize;
bool nzone = (!z && it != SEGENV.aux1);
bool nzone = (!z && (it & 0xFFFF) != SEGENV.aux1);
for (int i=SEGLEN-1; i >= 0; i--) {
if (nzone || z >= zoneSize) {
unsigned lastrand = PRNG16 >> 8;
Expand All @@ -1198,7 +1198,7 @@ void mode_running_random(void) {
z++;
}

SEGENV.aux1 = it;
SEGENV.aux1 = it & 0xFFFF;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is redundant, aux1 is uint16_t

}
static const char _data_FX_MODE_RUNNING_RANDOM[] PROGMEM = "Stream@!,Zone size;;!";

Expand Down
Loading