From 6a7ef6ff44ddfa5f24e39c7d55d51e30939ef4b9 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Wed, 15 May 2024 20:22:53 +0200 Subject: [PATCH] value --- TCPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index e883b43..ea65759 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -163,7 +163,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) if (tokens[2] == "axis") { std::vector 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") {