Skip to content

Commit 95a10c6

Browse files
authored
constexpr is invalid on is2D() (wled#4540)
* constexpr is invalid on is2D() (it does work on _V4 builds though)
1 parent 8c71753 commit 95a10c6

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
@@ -710,7 +710,7 @@ typedef struct Segment {
710710
void wu_pixel(uint32_t x, uint32_t y, CRGB c);
711711
inline void fill_solid(CRGB c) { fill(RGBW32(c.r,c.g,c.b,0)); }
712712
#else
713-
inline constexpr bool is2D() const { return false; }
713+
inline bool is2D() const { return false; }
714714
inline void setPixelColorXY(int x, int y, uint32_t c) { setPixelColor(x, c); }
715715
inline void setPixelColorXY(unsigned x, unsigned y, uint32_t c) { setPixelColor(int(x), c); }
716716
inline void setPixelColorXY(int x, int y, byte r, byte g, byte b, byte w = 0) { setPixelColor(x, RGBW32(r,g,b,w)); }

0 commit comments

Comments
 (0)