From 3f03cb4d2b0bcd0772210b1c56f17cfdf1220d24 Mon Sep 17 00:00:00 2001 From: ingDIY <10012263+ingDIY@users.noreply.github.com> Date: Fri, 20 Jun 2025 15:42:23 +0200 Subject: [PATCH] WLED_DISABLE_2D does not compile (#4736) the compilation fails with tons of errors if you try to compile using WLED_DISABLE_2D "message": "enclosing class of constexpr non-static member function 'bool Segment::is2D() const' is not a literal type", "LineNumber": 766, --- wled00/FX.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/FX.h b/wled00/FX.h index 1b9bbaac3..bc3eec767 100755 --- a/wled00/FX.h +++ b/wled00/FX.h @@ -763,7 +763,7 @@ class Segment { inline void drawCharacter(unsigned char chr, int16_t x, int16_t y, uint8_t w, uint8_t h, CRGB c, CRGB c2 = CRGB::Black, int8_t rotate = 0) const { drawCharacter(chr, x, y, w, h, RGBW32(c.r,c.g,c.b,0), RGBW32(c2.r,c2.g,c2.b,0), rotate); } // automatic inline inline void fill_solid(CRGB c) const { 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) const { setPixelColor(x, c); } inline void setPixelColorXY(unsigned x, unsigned y, uint32_t c) const { setPixelColor(int(x), c); } inline void setPixelColorXY(int x, int y, byte r, byte g, byte b, byte w = 0) const { setPixelColor(x, RGBW32(r,g,b,w)); }