kopia lustrzana https://github.com/Aircoookie/WLED
rodzic
a6d9a8220c
commit
a70bfa0c89
|
@ -229,8 +229,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;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue