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
parent 97dcce0248
commit 1bc6e25355
6 changed files with 22 additions and 22 deletions

View File

@@ -462,9 +462,9 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
if (tdd >= 0) realtimeTimeoutMs = tdd * 100;
#ifdef WLED_ENABLE_DMX_INPUT
CJSON(dmxTransmitPin, if_live_dmx[F("rxPin")]);
CJSON(dmxReceivePin, if_live_dmx[F("txPin")]);
CJSON(dmxEnablePin, if_live_dmx[F("enablePin")]);
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")]);
@@ -947,9 +947,9 @@ void serializeConfig() {
if_live_dmx[F("dss")] = DMXSegmentSpacing;
if_live_dmx["mode"] = DMXMode;
#ifdef WLED_ENABLE_DMX_INPUT
if_live_dmx[F("rxPin")] = dmxTransmitPin;
if_live_dmx[F("txPin")] = dmxReceivePin;
if_live_dmx[F("enablePin")] = dmxEnablePin;
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;