diff --git a/TCPServer.cpp b/TCPServer.cpp index b04e789..ebaee75 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -192,7 +192,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) if (speed >= 0 && (this->lidarDectectionAngle > PI / 2 && this->lidarDectectionAngle < 3 * PI / 2)) { this->broadcastMessage("strat;arduino;speed;" + std::to_string(speed) + "\n"); } - else if (speed <= 0 && (this->lidarDectectionAngle < PI / 2 && this->lidarDectectionAngle > 3 * PI / 2)) { + else if (speed <= 0 && (this->lidarDectectionAngle < PI / 2 || this->lidarDectectionAngle > 3 * PI / 2)) { this->broadcastMessage("strat;arduino;speed;" + std::to_string(speed) + "\n"); } }