with data check befor write to serial

This commit is contained in:
Lukas Loidold 2020-04-22 10:59:25 +02:00
parent 3141c7a858
commit 39c171c186

View File

@ -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);
}