From d7caf25910906997038798eb6e1a41a2008b0498 Mon Sep 17 00:00:00 2001 From: Shane Aronson Date: Thu, 11 Jan 2024 19:15:08 -0800 Subject: [PATCH] fixed multileds --- VortexEngine/src/Modes/Modes.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/VortexEngine/src/Modes/Modes.cpp b/VortexEngine/src/Modes/Modes.cpp index 1f43b7f08e..edd0480be2 100644 --- a/VortexEngine/src/Modes/Modes.cpp +++ b/VortexEngine/src/Modes/Modes.cpp @@ -350,12 +350,16 @@ bool Modes::setDefaults() // add each default mode with each of the given colors for (uint8_t i = 0; i < num_default_modes; ++i) { const default_mode_entry &def = default_modes[i]; - Mode tempMode; Colorset set1(def.numColors, def.cols); - tempMode.setPatternMap(def.map, def.patternID, nullptr, &set1); - Colorset set2(def.numColors2, def.cols2); - tempMode.setPatternMap(def.map2, def.patternID2, nullptr, &set2); - addMode(&tempMode); + if (isMultiLedPatternID(def.patternID)) { + addMode(def.patternID, nullptr, &set1); + } else { + Mode tempMode; + tempMode.setPatternMap(def.map, def.patternID, nullptr, &set1); + Colorset set2(def.numColors2, def.cols2); + tempMode.setPatternMap(def.map2, def.patternID2, nullptr, &set2); + addMode(&tempMode); + } } #endif return true;