From ed0dcb5c3d8a1296da79d6a69c8c0dd064edc7a9 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Thu, 10 Feb 2022 13:56:07 +0100 Subject: [PATCH] Use transitions on other segments. --- wled00/set.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/set.cpp b/wled00/set.cpp index 9318950d..47f5f703 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -888,8 +888,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]); } }