From 3f7f21e6dc3d28dad4ef3402b0bf4d2cb03e565c Mon Sep 17 00:00:00 2001 From: ackimixs Date: Wed, 8 May 2024 14:32:59 +0200 Subject: [PATCH] clear --- MyTCPClient.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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") {