Closed pr4rt0r closed 2 years ago
Thank you for pointing this out. I added _serial->flush(); after the _serial->write(_buf, len + 2); line. This will cause the program to wait until _serial has finished writing.
_serial->flush();
_serial->write(_buf, len + 2);
_serial