Skip to content

Commit

Permalink
fixed multileds
Browse files Browse the repository at this point in the history
  • Loading branch information
LivingSynthesis committed Jan 12, 2024
1 parent cb49059 commit d7caf25
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions VortexEngine/src/Modes/Modes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d7caf25

Please sign in to comment.