Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes two issues related to byte stuffing in SHDLC 1) Decoding SHDLC messages fail when the CRC byte is stuffed. This issue was reported upstream, along with a fix. Many thanks. 2) Missing break; in case statement causing an unwanted fall-through. Stuffing bytes causes the buffer to not only add the stuffing marker and the stuffed byte, but also the original unstuffed byte. This means that the data is both too long and corrupt, likely causing the sensor to ignore the request.
- Loading branch information