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], ".")) {