From d64cefb2cbe500d4a69c8924801848a46541603d Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Wed, 5 Apr 2023 13:19:29 +0100 Subject: [PATCH] Fix invert of tx and rx pins --- wled00/set.cpp | 4 ++-- wled00/xml.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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);