From 9f3bd9a156d63a13971d95ea63fe2cdfd9a5c878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Wed, 24 Apr 2024 16:46:46 +0200 Subject: [PATCH] Add aructo tag broadcast --- TCPServer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 790e4af..901cf63 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -260,10 +260,9 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) tag.setRot(std::stof(aruco[i + 4]), std::stof(aruco[i + 5]), std::stof(aruco[i + 6])); handleArucoTag(tag); - - // Broadcast the aruco tag to all clients - this->broadcastMessage(message.c_str(), clientSocket); } + // Broadcast the aruco tag to all clients + this->broadcastMessage(message.c_str(), clientSocket); } } else if (tokens[0] == "arduino") {