mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-19 00:47:36 +01:00
value
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user