From 8cd34e181ef8c4bf7ce67663bf04ccfcb9f72d6f Mon Sep 17 00:00:00 2001 From: ackimixs Date: Wed, 15 May 2024 22:31:03 +0200 Subject: [PATCH] do not need that --- TCPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 9647cd8..25fcda3 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -183,7 +183,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) if (value < 0) { speed = static_cast(TCPUtils::mapValue(value, -32767.0, 0.0, -310.0, -70.0)); } else if (value == 0) { - speed = 0; // Maps 0 to 0 + speed = 0; } else { speed = static_cast(TCPUtils::mapValue(value, 0.0, 32768.0, 70.0, 310.0)); }