diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 13b00f1..99dffa0 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -325,9 +325,9 @@ std::string serializeKobukiData(const TKobukiData &data) { // needed it so it can be threaded void sendKobukiData(TKobukiData &data) { while (true) { - if(!robot.connected()){ + if(!robot.isConnected()){ std::cout << "Kobuki is not connected anymore" << std::endl; - while(!robot.connected()){ + while(!robot.isConnected()){ robot.startCommunication("/dev/ttyUSB0", true, nullptr); std::this_thread::sleep_for(std::chrono::seconds(1)); }