From bbd80b9d38828cb0c8972eb0b970c75bb62109b0 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Mon, 15 Apr 2024 20:32:52 +0200 Subject: [PATCH] fucking \n --- TCPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 814ebde..1a78acb 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -236,7 +236,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) } else if (tokens[0] == "arduino" && tokens[2] == "set state") { std::cout << message << std::endl; - this->canMove = (tokens[3] == "0"); + this->canMove = TCPUtils::startWith(tokens[3], "0"); std::cout << this->canMove << std::endl; } // std::cout << "Received: " << message << std::endl;