Skip to content

Commit

Permalink
Save basic panel layout in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ewowi committed Sep 29, 2023
1 parent 0ba8402 commit 9be4ce1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wled00/cfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,11 @@ void serializeConfig() {
matrix[F("pv")] = strip.matrix.vertical;
matrix["ps"] = strip.matrix.serpentine;

matrix[F("pbl")] = strip.panelO.bottomStart;
matrix[F("prl")] = strip.panelO.rightStart;
matrix[F("pvl")] = strip.panelO.vertical;
matrix["psl"] = strip.panelO.serpentine;

JsonArray panels = matrix.createNestedArray(F("panels"));
for (uint8_t i=0; i<strip.panel.size(); i++) {
JsonObject pnl = panels.createNestedObject();
Expand Down

0 comments on commit 9be4ce1

Please sign in to comment.