From b9007f2dc65f8c455d54f76645c48f23cd928afd Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 16 Aug 2024 18:02:25 +0200 Subject: [PATCH] bugfix fix compiler error on non-fastpath builds --- wled00/FX_2Dfcn.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wled00/FX_2Dfcn.cpp b/wled00/FX_2Dfcn.cpp index b7e5357af1..bb0b186118 100644 --- a/wled00/FX_2Dfcn.cpp +++ b/wled00/FX_2Dfcn.cpp @@ -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 @@ -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;