From 29ef742a9485237da4a290a6d0bce7a74a86d621 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Mon, 20 Jan 2025 15:22:16 +0100 Subject: [PATCH] fix: use const_cast for port string in Kobuki communication --- src/C++/Driver/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;