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;
|
||||
|
||||
#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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user