Fix thread creation and joining in test.cpp

This commit is contained in:
ishak jmilou.ishak
2024-10-03 15:19:46 +02:00
parent 60b86d30b1
commit a961b4b999

View File

@@ -20,9 +20,9 @@ int main()
robot.startCommunication("/dev/ttyUSB0", true, null_ptr); robot.startCommunication("/dev/ttyUSB0", true, null_ptr);
usleep(1 * 1000 * 1000); usleep(1 * 1000 * 1000);
cout << "Enter commando"; cout << "Enter commando";
// thread mv(command); thread mv(command);
usleep(30 * 1000 * 1000); 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(){ int command(){