change robot moving status

This commit is contained in:
ackimixs
2024-04-15 21:48:06 +02:00
parent 28253d33ae
commit 5e06df32d8

View File

@@ -235,7 +235,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
}
}
else if (tokens[0] == "arduino" && tokens[2] == "set state") {
this->isRobotMoving = TCPUtils::startWith(tokens[3], "0");
this->isRobotMoving = TCPUtils::startWith(tokens[3], "1");
}
std::cout << "Received: " << message << std::endl;
}