diff --git a/src/WebCfgServer.cpp b/src/WebCfgServer.cpp index 9a3a7c9..208124e 100644 --- a/src/WebCfgServer.cpp +++ b/src/WebCfgServer.cpp @@ -3133,8 +3133,14 @@ void WebCfgServer::buildGpioConfigHtml(AsyncWebServerRequest *request) String pinStr = String(pin); String pinDesc = "Gpio " + pinStr; printDropDown(pinStr.c_str(), pinDesc.c_str(), "", options, "gpioselect"); - if(std::find(disabledPins.begin(), disabledPins.end(), pin) != disabledPins.end()) gpiopreselects.concat("gpio[" + pinStr + "] = '21';"); - else gpiopreselects.concat("gpio[" + pinStr + "] = '" + getPreselectionForGpio(pin) + "';"); + if(std::find(disabledPins.begin(), disabledPins.end(), pin) != disabledPins.end()) + { + gpiopreselects.concat("gpio[" + pinStr + "] = '21';"); + } + else + { + gpiopreselects.concat("gpio[" + pinStr + "] = '" + getPreselectionForGpio(pin) + "';"); + } } _response.concat(""); @@ -4030,8 +4036,14 @@ void WebCfgServer::printDropDown(const char *token, const char *description, con _response.concat(description); _response.concat(""); - if(className.length() > 0) _response.concat("");