Add dmx input port to configuration

This commit is contained in:
Arne
2023-08-23 14:33:12 +02:00
parent 2465e2edc3
commit 6378771746
11 changed files with 3967 additions and 3913 deletions

View File

@@ -359,7 +359,9 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
#ifdef WLED_ENABLE_DMX_INPUT
dmxInputTransmitPin = request->arg(F("IDMT")).toInt();
dmxInputReceivePin = request->arg(F("IDMR")).toInt();
dmxInputEnablePin= request->arg(F("IDME")).toInt();
dmxInputEnablePin = request->arg(F("IDME")).toInt();
dmxInputPort = request->arg(F("IDMP")).toInt();
if(dmxInputPort <= 0 || dmxInputPort > 2) dmxInputPort = 2;
#endif
alexaEnabled = request->hasArg(F("AL"));