Fix invert of tx and rx pins

This commit is contained in:
Will Tatam
2023-04-05 13:19:29 +01:00
parent d64cbc9059
commit d64cefb2cb
2 changed files with 4 additions and 4 deletions

View File

@@ -315,8 +315,8 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
if (t >= -255 && t <= 255) arlsOffset = t;
#ifdef WLED_ENABLE_DMX_INPUT
dmxTransmitPin = request->arg(F("DMR")).toInt();
dmxReceivePin = request->arg(F("DMT")).toInt();
dmxTransmitPin = request->arg(F("DMT")).toInt();
dmxReceivePin = request->arg(F("DMR")).toInt();
dmxEnablePin= request->arg(F("DME")).toInt();
#endif

View File

@@ -536,8 +536,8 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W
oappend(SET_F("hideDMXInput();")); // WLEDMM hide "dmx input" settings
#else
oappend(SET_F("hideNoDMXInput();")); // WLEDMM hide "not compiled in" message
sappend('v',SET_F("DMR"),dmxTransmitPin);
sappend('v',SET_F("DMT"),dmxReceivePin);
sappend('v',SET_F("DMT"),dmxTransmitPin);
sappend('v',SET_F("DMR"),dmxReceivePin);
sappend('v',SET_F("DME"),dmxEnablePin);
#endif
sappend('v',SET_F("DA"),DMXAddress);