tarm / serial

BSD 3-Clause "New" or "Revised" License
1.62k stars 452 forks source link

Problem with syncing 3 receiving bytes #124

Closed oskwin closed 2 years ago

oskwin commented 2 years ago

Hi, great job!

I am however experiencing a problem when reading my bytes with the help of this package. I do not manage to sync the bytes so that my string always starts with 0xff. As seen in the attached picture i've tried to solve this with a simple for loop with two temporary buffers that acts as some sort of garbage bin and then start with the "real" buffer. Hope someone can give some insight on this! :)

image

oskwin commented 2 years ago

Turns out my issue was caused by delay timers when comparing my go-code with how my board was programmed!