do not need that

This commit is contained in:
ackimixs
2024-05-15 22:31:03 +02:00
parent 92cdc869ac
commit 8cd34e181e

View File

@@ -183,7 +183,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
if (value < 0) {
speed = static_cast<int>(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<int>(TCPUtils::mapValue(value, 0.0, 32768.0, 70.0, 310.0));
}