Skip to content

Commit

Permalink
constexpr is invalid on is2D() (#4540)
Browse files Browse the repository at this point in the history
* constexpr is invalid on is2D() (it does work on _V4 builds though)
  • Loading branch information
scourge411 authored Feb 8, 2025
1 parent 8c71753 commit 95a10c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/FX.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)); }
Expand Down

0 comments on commit 95a10c6

Please sign in to comment.