General cleanup & optimisations.

Pushing memory to (safe-ish) limits.
This commit is contained in:
Blaz Kristan
2021-03-03 22:04:24 +01:00
parent 6e19e6f0a0
commit e5417d12ca
12 changed files with 632 additions and 641 deletions

View File

@@ -246,7 +246,7 @@ bool deserializeState(JsonObject root)
}
if (!didSet && lowestActive < strip.getMaxSegments()) deserializeSegment(segVar, lowestActive);
} else { //set only the segment with the specified ID
deserializeSegment(segVar, it);
deserializeSegment(segVar, id);
}
} else {
JsonArray segs = segVar.as<JsonArray>();