Fix invert of tx and rx pins
This commit is contained in:
@@ -315,8 +315,8 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
|
|||||||
if (t >= -255 && t <= 255) arlsOffset = t;
|
if (t >= -255 && t <= 255) arlsOffset = t;
|
||||||
|
|
||||||
#ifdef WLED_ENABLE_DMX_INPUT
|
#ifdef WLED_ENABLE_DMX_INPUT
|
||||||
dmxTransmitPin = request->arg(F("DMR")).toInt();
|
dmxTransmitPin = request->arg(F("DMT")).toInt();
|
||||||
dmxReceivePin = request->arg(F("DMT")).toInt();
|
dmxReceivePin = request->arg(F("DMR")).toInt();
|
||||||
dmxEnablePin= request->arg(F("DME")).toInt();
|
dmxEnablePin= request->arg(F("DME")).toInt();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -536,8 +536,8 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W
|
|||||||
oappend(SET_F("hideDMXInput();")); // WLEDMM hide "dmx input" settings
|
oappend(SET_F("hideDMXInput();")); // WLEDMM hide "dmx input" settings
|
||||||
#else
|
#else
|
||||||
oappend(SET_F("hideNoDMXInput();")); // WLEDMM hide "not compiled in" message
|
oappend(SET_F("hideNoDMXInput();")); // WLEDMM hide "not compiled in" message
|
||||||
sappend('v',SET_F("DMR"),dmxTransmitPin);
|
sappend('v',SET_F("DMT"),dmxTransmitPin);
|
||||||
sappend('v',SET_F("DMT"),dmxReceivePin);
|
sappend('v',SET_F("DMR"),dmxReceivePin);
|
||||||
sappend('v',SET_F("DME"),dmxEnablePin);
|
sappend('v',SET_F("DME"),dmxEnablePin);
|
||||||
#endif
|
#endif
|
||||||
sappend('v',SET_F("DA"),DMXAddress);
|
sappend('v',SET_F("DA"),DMXAddress);
|
||||||
|
|||||||
Reference in New Issue
Block a user