change state control

This commit is contained in:
ackimixs
2024-04-15 20:49:16 +02:00
parent 424e91a99d
commit b8a647d0bf

View File

@@ -89,7 +89,7 @@ void MyTCPClient::handleMessageFromArduino(const std::string &message) {
std::vector<std::string> args = TCPSocket::split(message, ":");
if (args.size() == 2) {
std::vector<std::string> token = TCPSocket::split(args[0], ",");
isDoingSomething = (args[1] == "0");
isDoingSomething = (args[1] == "0" ? 0 : 1);
std::cout << "isDoingSomethngs : " << isDoingSomething << " | " << args[1] << std::endl;
if (token.size() == 3) {
if (TCPSocket::startWith(token[0], ".")) {