From 7a2f5566824121fe10c9c394e93b23f2405a1117 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Tue, 28 Feb 2023 19:08:41 +0100 Subject: [PATCH] Bugfix for 1 pixel segment capabilities. --- wled00/FX_fcn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index 3540ccde0..f2d839f2e 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -762,6 +762,7 @@ void Segment::refreshLightCapabilities() { if (segStartIdx > index) segStartIdx = index; if (segStopIdx < index) segStopIdx = index; } + if (segStartIdx == segStopIdx) segStopIdx++; // we only have 1 pixel segment } } else { // we are on the strip located after the matrix