From 95a10c692ceb602d2a3206e2ea1741790ae02279 Mon Sep 17 00:00:00 2001 From: scourge411 <86616124+scourge411@users.noreply.github.com> Date: Sat, 8 Feb 2025 00:44:46 -0700 Subject: [PATCH] constexpr is invalid on is2D() (#4540) * constexpr is invalid on is2D() (it does work on _V4 builds though) --- wled00/FX.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/FX.h b/wled00/FX.h index 1a52ad95a..c3629289e 100644 --- a/wled00/FX.h +++ b/wled00/FX.h @@ -710,7 +710,7 @@ typedef struct Segment { void wu_pixel(uint32_t x, uint32_t y, CRGB c); inline void fill_solid(CRGB c) { fill(RGBW32(c.r,c.g,c.b,0)); } #else - inline constexpr bool is2D() const { return false; } + inline bool is2D() const { return false; } inline void setPixelColorXY(int x, int y, uint32_t c) { setPixelColor(x, c); } inline void setPixelColorXY(unsigned x, unsigned y, uint32_t c) { setPixelColor(int(x), c); } inline void setPixelColorXY(int x, int y, byte r, byte g, byte b, byte w = 0) { setPixelColor(x, RGBW32(r,g,b,w)); }