From 7c30d838f7caedec913cec643a15176c31fb8de2 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Wed, 15 Jan 2025 14:40:24 +0100 Subject: [PATCH] added thread.sleep to prevenet console flood --- src/C++/Driver/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index dbc9772..5fb1c69 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -395,6 +395,8 @@ void CapnSend() if (frame.empty()) { cerr << "Error: Could not capture image" << endl; + std::this_thread::sleep_for(std::chrono::seconds(1)); // Wait before retrying + continue; }