diff --git a/MyTCPClient.cpp b/MyTCPClient.cpp index 6804fa9..1ac8a24 100644 --- a/MyTCPClient.cpp +++ b/MyTCPClient.cpp @@ -63,7 +63,11 @@ void MyTCPClient::handleMessage(const std::string &message) { std::cerr << "Error writing to arduino" << std::endl; } } else if (token[2] == "clear") { - if (this->write_2_arduino(" ") != 1) { + /*if (this->write_2_arduino(" ") != 1) { + std::cerr << "Error writing to arduino" << std::endl; + }*/ + + if (this->write_2_arduino("0") != 1) { std::cerr << "Error writing to arduino" << std::endl; } } else if (token[2] == "get pos") {