From 9547ac353d018f6a5db6ffc7c27eb31df7f56e7b Mon Sep 17 00:00:00 2001 From: Jeff Cooper Date: Tue, 30 Nov 2021 17:10:23 -0500 Subject: [PATCH] Save and load the e131 Proxy Universe setting in the DMX menu (#2365) --- wled00/cfg.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index a72af85b..878be53c 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -400,6 +400,8 @@ bool deserializeConfig(JsonObject doc, bool fromFS) { if (i > 14) break; CJSON(DMXFixtureMap[i],dmx_fixmap[i]); } + + CJSON(e131ProxyUniverse, dmx[F("e131proxy")]); #endif DEBUG_PRINTLN(F("Starting usermod config.")); @@ -736,8 +738,11 @@ void serializeConfig() { dmx[F("start-led")] = DMXStartLED; JsonArray dmx_fixmap = dmx.createNestedArray(F("fixmap")); - for (byte i = 0; i < 15; i++) + for (byte i = 0; i < 15; i++) { dmx_fixmap.add(DMXFixtureMap[i]); + } + + dmx[F("e131proxy")] = e131ProxyUniverse; #endif JsonObject usermods_settings = doc.createNestedObject("um");