mirror of
https://github.com/wled/WLED.git
synced 2025-07-26 04:06:37 +00:00
blends FX - hotfix for black pixels
fixing an off-by-one error to solve #4335
This commit is contained in:
parent
99427c2ef7
commit
ae8c3b02d0
@ -4497,7 +4497,7 @@ uint16_t mode_blends(void) {
|
|||||||
unsigned offset = 0;
|
unsigned offset = 0;
|
||||||
for (unsigned i = 0; i < SEGLEN; i++) {
|
for (unsigned i = 0; i < SEGLEN; i++) {
|
||||||
SEGMENT.setPixelColor(i, pixels[offset++]);
|
SEGMENT.setPixelColor(i, pixels[offset++]);
|
||||||
if (offset > pixelLen) offset = 0;
|
if (offset >= pixelLen) offset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return FRAMETIME;
|
return FRAMETIME;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user