rename global dmx... variables to dmxInput...

This is the first step in supporting both dmx input and dmx output on different pins.
This commit is contained in:
Arne
2023-08-14 13:28:34 +02:00
committed by Will Tatam
parent 9e37d7051c
commit 702d085117
6 changed files with 108 additions and 1 deletions

View File

@@ -522,6 +522,13 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
tdd = if_live[F("timeout")] | -1;
if (tdd >= 0) realtimeTimeoutMs = tdd * 100;
#ifdef WLED_ENABLE_DMX_INPUT
CJSON(dmxInputTransmitPin, if_live_dmx[F("inputRxPin")]);
CJSON(dmxInputReceivePin, if_live_dmx[F("inputTxPin")]);
CJSON(dmxInputEnablePin, if_live_dmx[F("enablePin")]);
#endif
CJSON(arlsForceMaxBri, if_live[F("maxbri")]);
CJSON(arlsDisableGammaCorrection, if_live[F("no-gc")]); // false
CJSON(arlsOffset, if_live[F("offset")]); // 0
@@ -1001,6 +1008,11 @@ void serializeConfig() {
if_live_dmx[F("addr")] = DMXAddress;
if_live_dmx[F("dss")] = DMXSegmentSpacing;
if_live_dmx["mode"] = DMXMode;
#ifdef WLED_ENABLE_DMX_INPUT
if_live_dmx[F("rxPin")] = dmxInputTransmitPin;
if_live_dmx[F("txPin")] = dmxInputReceivePin;
if_live_dmx[F("enablePin")] = dmxInputEnablePin;
#endif
if_live[F("timeout")] = realtimeTimeoutMs / 100;
if_live[F("maxbri")] = arlsForceMaxBri;