Merge pull request #4341 from Aircoookie/hotfix_4335

Hotfix for #4335 - solves missed pixel problem in blends effect
This commit is contained in:
Frank 2024-12-02 21:42:21 +01:00 committed by GitHub
commit a0f99393f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4497,7 +4497,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;