Skip to content

Commit

Permalink
minor tweak (break instead of continue in setPixelColorXY)
Browse files Browse the repository at this point in the history
  • Loading branch information
DedeHai committed Sep 14, 2024
1 parent d45b4ad commit 2afff05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/FX_2Dfcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void IRAM_ATTR_YN Segment::setPixelColorXY(int x, int y, uint32_t col)

int yY = y;
for (int j = 0; j < grouping; j++) { // groupping vertically
if(yY >= H) continue;
if(yY >= H) break;
int xX = x;
for (int g = 0; g < grouping; g++) { // groupping horizontally
if (xX >= W) continue; // we have reached one dimension's end
Expand Down

0 comments on commit 2afff05

Please sign in to comment.