Skip to content

Commit 3f03cb4

Browse files
authored
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,
1 parent 05557ca commit 3f03cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/FX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ class Segment {
763763
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
764764
inline void fill_solid(CRGB c) const { fill(RGBW32(c.r,c.g,c.b,0)); }
765765
#else
766-
inline constexpr bool is2D() const { return false; }
766+
inline bool is2D() const { return false; }
767767
inline void setPixelColorXY(int x, int y, uint32_t c) const { setPixelColor(x, c); }
768768
inline void setPixelColorXY(unsigned x, unsigned y, uint32_t c) const { setPixelColor(int(x), c); }
769769
inline void setPixelColorXY(int x, int y, byte r, byte g, byte b, byte w = 0) const { setPixelColor(x, RGBW32(r,g,b,w)); }

0 commit comments

Comments
 (0)