From d3d030110900c1aab34c8f319b3bb41b846e6bfd Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 16 Apr 2024 12:15:26 +0200 Subject: [PATCH] sleep --- TCPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 2e45e10..38da880 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") { - this->isRobotMoving += (TCPUtils::startWith(tokens[3], "1") ? 1 : 0); + this->isRobotMoving += (TCPUtils::startWith(tokens[3], "0") ? 1 : 0); } std::cout << "Received: " << message << std::endl; }