From 2d2ac7d97da88cde66f8ca64b85a12e6e4be7593 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Mon, 8 Apr 2024 22:16:21 +0200 Subject: [PATCH] change sleep --- TCPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 11ddee8..ca17b49 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -171,7 +171,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) if (tokens[0] == "aruco" && tokens[2] == "get aruco") { std::string aruco = tokens[3]; if (aruco == "404") { - std::this_thread::sleep_for(std::chrono::milliseconds(100)); + usleep(50'000); this->broadcastMessage("strat;aruco;get aruco;1\n"); } else if (firstPot) { std::cout << "Aruco tags received" << std::endl;