From 74fed5695f2d76caa84bf4f6258fc5141d822cb1 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Tue, 16 Jan 2024 19:34:23 +0100 Subject: [PATCH] Fix for #3693 --- wled00/FX_fcn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index 2a3c51de9a..f9cf3e1e73 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -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));