minimal Auto segment creation bugfix

based on 13bfda56ef
This commit is contained in:
Frank
2024-05-18 21:49:09 +02:00
parent 31cca47024
commit 1b9b2dcffe
2 changed files with 4 additions and 2 deletions

View File

@@ -516,7 +516,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()) {
inDeepCall = true; // WLEDMM remember that we are going into recursion
deserializeSegment(segVar, s, presetId);
if (iAmGroot) inDeepCall = false; // WLEDMM toplevel -> reset recursion flag