diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 5871450..d3e7236 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -327,9 +327,8 @@ void sendKobukiData(TKobukiData &data) { while (true) { if(!robot.isConnected()){ std::cout << "Kobuki is not connected anymore" << std::endl; - robot.connect("/dev/ttyUSB0"); - while(!robot.isConnected()){ robot.startCommunication("/dev/ttyUSB0", true, nullptr); + while(!robot.isConnected()){ std::this_thread::sleep_for(std::chrono::seconds(1)); } }