Skip to content

Commit

Permalink
Fix the dynamic palette size
Browse files Browse the repository at this point in the history
Signed-off-by: Evy Bongers <[email protected]>
  • Loading branch information
EvyBongers authored and obra committed May 6, 2024
1 parent c2b2e7c commit abc9dda
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,13 @@ class DefaultPalette : public Plugin {
// clang-format off

#define PALETTE(p00, p01, p02, p03, p04, p05, p06, p07, \
p08, p09, p0a, p0b, p0c, p0d, p0e, p0f, \
...) \
p08, p09, p0a, p0b, p0c, p0d, p0e, ...) \
namespace kaleidoscope { \
namespace plugin { \
namespace ledpalette { \
const cRGB palette[] PROGMEM = { \
p00, p01, p02, p03, p04, p05, p06, p07, \
p08, p09, p0a, p0b, p0c, p0d, p0e, p0f \
__VA_OPT__(,) __VA_ARGS__ \
p08, p09, p0a, p0b, p0c, p0d, p0e, ##__VA_ARGS__ \
}; \
bool palette_defined = true; \
} /* defaultcolormap */ \
Expand Down

0 comments on commit abc9dda

Please sign in to comment.