Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,11 +782,9 @@ void IRAM_ATTR_YN Segment::setPixelColor(int i, uint32_t col) const
// check if this is a virtual strip
#ifndef WLED_DISABLE_2D
vStrip = i>>16; // hack to allow running on virtual strips (2D segment columns/rows)
i &= 0xFFFF; //truncate vstrip index
if (i >= vL) return; // if pixel would still fall out of segment just exit
#else
return;
#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
}

#ifndef WLED_DISABLE_2D
Expand Down