Skip to content

Commit

Permalink
blends FX - hotfix for black pixels
Browse files Browse the repository at this point in the history
fixing an off-by-one error to solve Aircoookie#4335
  • Loading branch information
softhack007 authored and blazoncek committed Dec 2, 2024
1 parent d83c800 commit 7e1453c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4486,7 +4486,7 @@ uint16_t mode_blends(void) {
unsigned offset = 0;
for (unsigned i = 0; i < SEGLEN; i++) {
SEGMENT.setPixelColor(i, pixels[offset++]);
if (offset > pixelLen) offset = 0;
if (offset >= pixelLen) offset = 0;
}

return FRAMETIME;
Expand Down

0 comments on commit 7e1453c

Please sign in to comment.