From fa981a389f61d0b9999fa86d59c9b811c5d4dd09 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Thu, 10 Feb 2022 13:59:59 +0100 Subject: [PATCH] Add transitions to other segments. --- wled00/set.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/set.cpp b/wled00/set.cpp index 8ab7205f30..7b32d090ba 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -965,8 +965,8 @@ bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply) if (effectSpeed != prevSpeed) seg.speed = effectSpeed; if (effectIntensity != prevIntensity) seg.intensity = effectIntensity; if (effectPalette != prevPalette) seg.palette = effectPalette; - if (col0Changed) seg.colors[0] = RGBW32(col[0], col[1], col[2], col[3]); - if (col1Changed) seg.colors[1] = RGBW32(colSec[0], colSec[1], colSec[2], colSec[3]); + if (col0Changed) seg.setColor(0, RGBW32(col[0], col[1], col[2], col[3]), i); // use transitions + if (col1Changed) seg.setColor(1, RGBW32(colSec[0], colSec[1], colSec[2], colSec[3]), i); // use transitions if (col2Changed) seg.colors[2] = RGBW32(tmpCol[0], tmpCol[1], tmpCol[2], tmpCol[3]); } }