Auto segment creation bugfix

- additional debug
- minor optimisation
This commit is contained in:
Blaz Kristan
2024-05-18 11:11:40 +02:00
parent 77ca2ec0e9
commit 13bfda56ef
3 changed files with 16 additions and 11 deletions

View File

@@ -416,7 +416,7 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
//bool didSet = false;
for (size_t s = 0; s < strip.getSegmentsNum(); s++) {
Segment &sg = strip.getSegment(s);
if (sg.isSelected()) {
if (sg.isActive() && sg.isSelected()) {
deserializeSegment(segVar, s, presetId);
//didSet = true;
}