From 4fb0abd041db174eeea41a19ec7ebf6fae96331a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien?= Date: Fri, 22 Dec 2017 12:28:10 +0100 Subject: [PATCH] Adding else to gain process time --- LibreMetric.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreMetric.ino b/LibreMetric.ino index 941b52c..d500b30 100644 --- a/LibreMetric.ino +++ b/LibreMetric.ino @@ -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