Skip to content

Commit

Permalink
blends effect bugfix
Browse files Browse the repository at this point in the history
quick fix for "missing pixel 256" problem
  • Loading branch information
softhack007 committed Dec 1, 2024
1 parent 9ff235e commit a0e0376
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 @@ -4596,7 +4596,7 @@ uint16_t mode_blends(void) {
uint16_t offset = 0;
for (int i = 0; i < SEGLEN; i++) {
SEGMENT.setPixelColor(i, pixels[offset++]);
if (offset > pixelLen) offset = 0;
if (offset >= pixelLen) offset = 0;
}

return FRAMETIME;
Expand Down

1 comment on commit a0e0376

@dosipod
Copy link

@dosipod dosipod commented on a0e0376 Dec 2, 2024

Choose a reason for hiding this comment

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

Test that and it is fine now on 32x8 matrix

Please sign in to comment.