Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
fix compiler error on non-fastpath builds
  • Loading branch information
softhack007 committed Aug 16, 2024
1 parent 030a7ce commit b9007f2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions wled00/FX_2Dfcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,11 @@ void IRAM_ATTR __attribute__((hot)) Segment::setPixelColorXY_fast(int x, int y,

// set the requested pixel
strip.setPixelColorXY_fast(start + x, startY + y, scaled_col);
//bool simpleSegment = !mirror && !mirror_y;
#ifdef WLEDMM_FASTPATH
bool simpleSegment = _isSuperSimpleSegment;
#else
bool simpleSegment = !mirror && !mirror_y;
#endif
if (simpleSegment) return; // WLEDMM shortcut when no mirroring needed

// handle mirroring
Expand Down Expand Up @@ -337,8 +340,11 @@ void IRAM_ATTR_YN Segment::setPixelColorXY(int x, int y, uint32_t col) //WLEDMM:
if (transpose) { uint16_t t = x; x = y; y = t; } // swap X & Y if segment transposed

// WLEDMM shortcut when no grouping/spacing used
//bool simpleSegment = !mirror && !mirror_y && (grouping == 1) && (spacing == 0);
#ifdef WLEDMM_FASTPATH
bool simpleSegment = _isSuperSimpleSegment;
#else
bool simpleSegment = !mirror && !mirror_y && (grouping == 1) && (spacing == 0);
#endif
if (simpleSegment) {
strip.setPixelColorXY(start + x, startY + y, col);
return;
Expand Down

0 comments on commit b9007f2

Please sign in to comment.