diff --git a/wled00/set.cpp b/wled00/set.cpp index 1301d190..d3be194f 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -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 diff --git a/wled00/xml.cpp b/wled00/xml.cpp index 5fe7842a..35802fe5 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -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);