From abc9dda79e6ca0038d318ab2a8f89733b51c801b Mon Sep 17 00:00:00 2001 From: Evy Bongers Date: Fri, 3 May 2024 19:05:03 +0200 Subject: [PATCH] Fix the dynamic palette size Signed-off-by: Evy Bongers --- .../src/kaleidoscope/plugin/DefaultPalette.h | 6 ++---- 1 file changed, 2 insertions(+), 4 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 8e41ea05f..c3a32fb1c 100644 --- a/plugins/Kaleidoscope-LED-Palette-Theme/src/kaleidoscope/plugin/DefaultPalette.h +++ b/plugins/Kaleidoscope-LED-Palette-Theme/src/kaleidoscope/plugin/DefaultPalette.h @@ -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 */ \