This commit is contained in:
ackimixs
2024-04-16 12:15:26 +02:00
parent 6f9e0af132
commit d3d0301109

View File

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