Bugfix (#3526)
This commit is contained in:
parent
7c121b8ba6
commit
c340a1d47f
@ -501,7 +501,8 @@ void serializeSegment(JsonObject& root, Segment& seg, byte id, bool forPreset, b
|
|||||||
root["cct"] = seg.cct;
|
root["cct"] = seg.cct;
|
||||||
root[F("set")] = seg.set;
|
root[F("set")] = seg.set;
|
||||||
|
|
||||||
if (segmentBounds && seg.name != nullptr) root["n"] = reinterpret_cast<const char *>(seg.name); //not good practice, but decreases required JSON buffer
|
if (seg.name != nullptr) root["n"] = reinterpret_cast<const char *>(seg.name); //not good practice, but decreases required JSON buffer
|
||||||
|
else if (forPreset) root["n"] = "";
|
||||||
|
|
||||||
// to conserve RAM we will serialize the col array manually
|
// to conserve RAM we will serialize the col array manually
|
||||||
// this will reduce RAM footprint from ~300 bytes to 84 bytes per segment
|
// this will reduce RAM footprint from ~300 bytes to 84 bytes per segment
|
||||||
|
Loading…
Reference in New Issue
Block a user