mirror of
https://github.com/wled/WLED.git
synced 2025-04-24 14:57: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 rem = 0;
|
||||
rem = (prog * SEGLEN) * 2; //mod 0xFFFF
|
||||
uint16_t rem = (prog * SEGLEN) * 2; //mod 0xFFFF by truncating
|
||||
rem /= (SEGMENT.intensity +1);
|
||||
if (rem > 255) rem = 255;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user