From 39c171c186959d986f2ce39d3e737c826f835b91 Mon Sep 17 00:00:00 2001 From: Lukas Loidold Date: Wed, 22 Apr 2020 10:59:25 +0200 Subject: [PATCH] with data check befor write to serial --- main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.cpp b/main.cpp index 22f6c56..1f152a1 100644 --- a/main.cpp +++ b/main.cpp @@ -43,6 +43,12 @@ void sendData(uint8_t *data, size_t len) { if (result != HasReturnvaluesIF::RETURN_OK) { return; } + for (size_t i = 0; i < writtenLen; i++) + { + Serial.print("buffer is: ");Serial.println(buffer[i]); + + + } Serial.write(buffer, writtenLen); }