diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 734a276..9cb483a 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -95,7 +95,7 @@ void checkKobukiConnection() } cout << "Attempting to reconnect Kobuki..." << endl; - robot.startCommunication(port.c_str(), true, nullptr); + robot.startCommunication(const_cast(port.c_str()), true, nullptr); if (robot.isConnected()){ cout << "Kobuki reconnected successfully!" << endl;