We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eafc01 commit a53baa9Copy full SHA for a53baa9
wled00/FX_fcn.cpp
@@ -678,11 +678,9 @@ void IRAM_ATTR_YN Segment::setPixelColor(int i, uint32_t col) const
678
// check if this is a virtual strip
679
#ifndef WLED_DISABLE_2D
680
vStrip = i>>16; // hack to allow running on virtual strips (2D segment columns/rows)
681
- i &= 0xFFFF; //truncate vstrip index
682
- if (i >= vL) return; // if pixel would still fall out of segment just exit
683
- #else
684
- return;
685
#endif
+ i &= 0xFFFF; // truncate vstrip index. note: vStrip index is 1 even in 1D, still need to truncate
+ if (i >= vL) return; // if pixel would still fall out of segment just exit
686
}
687
688
0 commit comments