Adding else to gain process time

This commit is contained in:
Sébastien Vallée 2017-12-22 12:28:10 +01:00
parent 99e4c10f52
commit 4fb0abd041

View File

@ -133,7 +133,7 @@ void GetMessage() {
String Argument_Name = server.argName(i);
String client_response = server.arg(i);
if (Argument_Name == "message") message = client_response;
if (Argument_Name == "brightness") brightness = client_response.toInt();
else if (Argument_Name == "brightness") brightness = client_response.toInt();
}
}
server.send(200, "text/html", webpage); // Send a response to the client to enter their inputs, if needed, Enter=defaults