Skip to content

Commit

Permalink
Fix for Aircoookie#3693
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Jan 16, 2024
1 parent a4a8e26 commit 74fed56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ uint8_t Segment::currentBri(bool useCct) {
uint32_t prog = progress();
if (prog < 0xFFFFU) {
uint32_t curBri = (useCct ? cct : (on ? opacity : 0)) * prog;
curBri += (useCct ? _t->_cctT : (on ? _t->_briT : 0)) * (0xFFFFU - prog);
curBri += (useCct ? _t->_cctT : _t->_briT) * (0xFFFFU - prog);
return curBri / 0xFFFFU;
}
return (useCct ? cct : (on ? opacity : 0));
Expand Down

0 comments on commit 74fed56

Please sign in to comment.