Adding else to gain process time
This commit is contained in:
parent
99e4c10f52
commit
4fb0abd041
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user