This commit is contained in:
ackimixs
2024-05-15 20:22:53 +02:00
parent 0a603a55cc
commit 6a7ef6ff44

View File

@@ -163,7 +163,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
if (tokens[2] == "axis") {
std::vector<std::string> args = TCPUtils::split(tokens[3], ",");
double value = std::stod(args[1]);
if (value > -1200 && value < 1200) {
if (value > -500 && value < 500) {
value = 0;
}
if (args[0] == "0") {