This commit is contained in:
ackimixs
2024-05-08 14:32:59 +02:00
parent 78aa6cc8dc
commit 3f7f21e6dc

View File

@@ -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") {