Fixes
This commit is contained in:
@@ -3190,7 +3190,7 @@ esp_err_t WebCfgServer::buildGpioConfigHtml(PsychicRequest *request)
|
|||||||
{
|
{
|
||||||
String pinStr = String(pin);
|
String pinStr = String(pin);
|
||||||
String pinDesc = "Gpio " + pinStr;
|
String pinDesc = "Gpio " + pinStr;
|
||||||
printDropDown(pinStr.c_str(), pinDesc.c_str(), "", options, "gpioselect");
|
printDropDown(&response, pinStr.c_str(), pinDesc.c_str(), "", options, "gpioselect");
|
||||||
if(std::find(disabledPins.begin(), disabledPins.end(), pin) != disabledPins.end())
|
if(std::find(disabledPins.begin(), disabledPins.end(), pin) != disabledPins.end())
|
||||||
{
|
{
|
||||||
gpiopreselects.concat("gpio[" + pinStr + "] = '21';");
|
gpiopreselects.concat("gpio[" + pinStr + "] = '21';");
|
||||||
@@ -4102,14 +4102,14 @@ void WebCfgServer::printDropDown(PsychicStreamResponse *response, const char *to
|
|||||||
response->print("</td><td>");
|
response->print("</td><td>");
|
||||||
if(className.length() > 0)
|
if(className.length() > 0)
|
||||||
{
|
{
|
||||||
_response.concat("<select class=\"" + className + "\" name=\"");
|
response->print("<select class=\"" + className + "\" name=\"");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_response.concat("<select name=\"");
|
response->print("<select name=\"");
|
||||||
}
|
}
|
||||||
_response.concat(token);
|
response->print(token);
|
||||||
_response.concat("\">");
|
response->print("\">");
|
||||||
|
|
||||||
for(const auto& option : options)
|
for(const auto& option : options)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user