From 03af72c1c6ce89f05e1898bc286bbcc8293fa923 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 16 Apr 2024 20:11:56 +0200 Subject: [PATCH] set state --- TCPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 99d74ea..5707066 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -242,7 +242,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) } } else if (tokens[0] == "arduino" && tokens[2] == "set state") { - if (TCPUtils::startWith(tokens[3], "0")) { + if (TCPUtils::startWith(tokens[3], "1")) { this->isRobotMoving++; std::string temp = message; this->broadcastMessage(temp, clientSocket);