From b8a647d0bfbc4aacf96213bf34066218faff656b Mon Sep 17 00:00:00 2001 From: ackimixs Date: Mon, 15 Apr 2024 20:49:16 +0200 Subject: [PATCH] change state control --- MyTCPClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyTCPClient.cpp b/MyTCPClient.cpp index 1220a9f..25cf0b4 100644 --- a/MyTCPClient.cpp +++ b/MyTCPClient.cpp @@ -89,7 +89,7 @@ void MyTCPClient::handleMessageFromArduino(const std::string &message) { std::vector args = TCPSocket::split(message, ":"); if (args.size() == 2) { std::vector 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], ".")) {