mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 12:24:57 +00:00
Fix thread creation and joining in test.cpp
This commit is contained in:
@@ -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(){
|
||||
|
Reference in New Issue
Block a user