Skip to content
Merged
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
3 changes: 1 addition & 2 deletions wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ uint16_t color_wipe(bool rev, bool useRandomColors) {
}

unsigned ledIndex = (prog * SEGLEN) >> 15;
unsigned rem = 0;
rem = (prog * SEGLEN) * 2; //mod 0xFFFF
uint16_t rem = (prog * SEGLEN) * 2; //mod 0xFFFF by truncating
rem /= (SEGMENT.intensity +1);
if (rem > 255) rem = 255;

Expand Down
Loading