diff --git a/TCPServer.cpp b/TCPServer.cpp index 1a764cd..35f4903 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -804,6 +804,7 @@ void TCPServer::awaitRobotIdle() { timeout++; if (stopEmergency) { while (stopEmergency) { + stopEmergency = false; usleep(100'000); } this->broadcastMessage(lastArduinoCommand);