Skip to content

Commit a50f12d

Browse files
authored
Merge pull request wled#4918 from wled/tricolor-fix-015
Bugfix for FX: Tri Fade
2 parents 0516dfe + fc35f0a commit a50f12d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wled00/FX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,8 +1646,8 @@ static const char _data_FX_MODE_TRICOLOR_WIPE[] PROGMEM = "Tri Wipe@!;1,2,3;!";
16461646
* Modified by Aircoookie
16471647
*/
16481648
uint16_t mode_tricolor_fade(void) {
1649-
unsigned counter = strip.now * ((SEGMENT.speed >> 3) +1);
1650-
uint16_t prog = (counter * 768) >> 16;
1649+
uint16_t counter = strip.now * ((SEGMENT.speed >> 3) +1);
1650+
uint32_t prog = (counter * 768) >> 16;
16511651

16521652
uint32_t color1 = 0, color2 = 0;
16531653
unsigned stage = 0;

0 commit comments

Comments
 (0)