commands from WebUI no longer CaseSensitive
This commit is contained in:
parent
d3506fd479
commit
56872ea856
@ -193,9 +193,10 @@ void WebserverNotFound_Callback(AsyncWebServerRequest *request)
|
||||
void WebserverCommands_Callback(String input)
|
||||
{
|
||||
String command = input.substring(0, input.indexOf(' '));
|
||||
command.toUpperCase();
|
||||
StatusResponseMessage_Type = RESPMSG_HIDE;
|
||||
|
||||
if (command == "reset")
|
||||
if (command == "RESET")
|
||||
{
|
||||
strcpy(StatusResponseMessage, "Counter Reset done");
|
||||
StatusResponseMessage_Type = RESPMSG_SUCCESS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user