fucking \n

This commit is contained in:
ackimixs
2024-04-15 20:32:52 +02:00
parent af9df0ace3
commit bbd80b9d38

View File

@@ -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;