From a508d5c881d079373742726acf4a55ff586ff1e7 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Mon, 4 Nov 2024 14:10:09 +0100 Subject: [PATCH] stop the robot --- 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 8f85c45..899b5e8 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -61,7 +61,7 @@ void parseMQTT(std::string message){ } else if(message == "stop"){ robot.sendNullMessage(); - this_thread::sleep_for(chrono::milliseconds(1000)); + robot.sendNullMessage(); } else{ std::cout << "Invalid command" << std::endl;