mirror of
https://github.com/wled/WLED.git
synced 2025-04-30 09:47:18 +00:00
Merge pull request #4596 from Dschogo/patch-1
Fix wipe effect smoothness
This commit is contained in:
commit
6e7fffefec
@ -183,8 +183,7 @@ uint16_t color_wipe(bool rev, bool useRandomColors) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unsigned ledIndex = (prog * SEGLEN) >> 15;
|
unsigned ledIndex = (prog * SEGLEN) >> 15;
|
||||||
unsigned rem = 0;
|
uint16_t rem = (prog * SEGLEN) * 2; //mod 0xFFFF by truncating
|
||||||
rem = (prog * SEGLEN) * 2; //mod 0xFFFF
|
|
||||||
rem /= (SEGMENT.intensity +1);
|
rem /= (SEGMENT.intensity +1);
|
||||||
if (rem > 255) rem = 255;
|
if (rem > 255) rem = 255;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user