mirror of
https://github.com/wled/WLED.git
synced 2025-07-21 17:56:33 +00:00
Bugfix for 1 pixel segment capabilities.
This commit is contained in:
parent
92d883db87
commit
7a2f556682
@ -762,6 +762,7 @@ void Segment::refreshLightCapabilities() {
|
|||||||
if (segStartIdx > index) segStartIdx = index;
|
if (segStartIdx > index) segStartIdx = index;
|
||||||
if (segStopIdx < index) segStopIdx = index;
|
if (segStopIdx < index) segStopIdx = index;
|
||||||
}
|
}
|
||||||
|
if (segStartIdx == segStopIdx) segStopIdx++; // we only have 1 pixel segment
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// we are on the strip located after the matrix
|
// we are on the strip located after the matrix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user