From a961b4b999d741a2de00431bfc2bf4c8f5991243 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Thu, 3 Oct 2024 15:19:46 +0200 Subject: [PATCH] Fix thread creation and joining in test.cpp --- src/C++/Driver/src/test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/C++/Driver/src/test.cpp b/src/C++/Driver/src/test.cpp index feade16..4cb2ed2 100644 --- a/src/C++/Driver/src/test.cpp +++ b/src/C++/Driver/src/test.cpp @@ -20,9 +20,9 @@ int main() robot.startCommunication("/dev/ttyUSB0", true, null_ptr); usleep(1 * 1000 * 1000); cout << "Enter commando"; - // thread mv(command); + thread mv(command); usleep(30 * 1000 * 1000); - // mv.join(); //only exit once thread one is done running + mv.join(); //only exit once thread one is done running } int command(){