From ff8e3b25a450091d4e660efe32646c97f57647d2 Mon Sep 17 00:00:00 2001 From: Evy Bongers Date: Thu, 2 May 2024 21:01:07 +0200 Subject: [PATCH] Have PALETTE support 16 or more arguments Signed-off-by: Evy Bongers --- .../src/kaleidoscope/plugin/DefaultPalette.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Kaleidoscope-LED-Palette-Theme/src/kaleidoscope/plugin/DefaultPalette.h b/plugins/Kaleidoscope-LED-Palette-Theme/src/kaleidoscope/plugin/DefaultPalette.h index b443a579e..8e41ea05f 100644 --- a/plugins/Kaleidoscope-LED-Palette-Theme/src/kaleidoscope/plugin/DefaultPalette.h +++ b/plugins/Kaleidoscope-LED-Palette-Theme/src/kaleidoscope/plugin/DefaultPalette.h @@ -55,14 +55,14 @@ class DefaultPalette : public Plugin { #define PALETTE(p00, p01, p02, p03, p04, p05, p06, p07, \ p08, p09, p0a, p0b, p0c, p0d, p0e, p0f, \ - p10, p11, p12, p13, p14, p15, p16, p17) \ + ...) \ 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, \ - p10, p11, p12, p13, p14, p15, p16, p17 \ + p08, p09, p0a, p0b, p0c, p0d, p0e, p0f \ + __VA_OPT__(,) __VA_ARGS__ \ }; \ bool palette_defined = true; \ } /* defaultcolormap */ \