Segment reverse fix
This commit is contained in:
parent
2dce4462a0
commit
b1cbbeb935
@ -113,7 +113,7 @@ uint16_t WS2812FX::realPixelIndex(uint16_t i) {
|
|||||||
/* reverse just an individual segment */
|
/* reverse just an individual segment */
|
||||||
int16_t realIndex;
|
int16_t realIndex;
|
||||||
if IS_REVERSE
|
if IS_REVERSE
|
||||||
realIndex = SEGMENT.stop - iGroup -1;
|
realIndex = SEGMENT.rawLength + SEGMENT.start - iGroup -1;
|
||||||
else
|
else
|
||||||
realIndex = SEGMENT.start + iGroup;
|
realIndex = SEGMENT.start + iGroup;
|
||||||
/* Reverse the whole string */
|
/* Reverse the whole string */
|
||||||
|
Loading…
Reference in New Issue
Block a user