-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serial Synchronization #24 #48
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit: I think it looks to solve the issues.
The test program does random short reads/0 reads and it resyncs with the incoming data. |
yeah i think i understand it now. |
Co-authored-by: Johnny <[email protected]>
Co-authored-by: Johnny <[email protected]>
Concept ACK. I will try to replicate the issue on actual hardware to verify before merging. |
Please squash commits as well and give a better commit message. Commit header should be clear with what was worked on and in the imperative mood. So something like, Ensure bm1366 serial data is the expected size. Then the description can include more details about the error and why. Issue number should go after the description/body of the commit. Something like this for commit template.
|
User reported bm1397 received an invalid packet and was unable to continue without manually reset the device. This patch enables the serial comms to resync when invalid/short data is received issue skot#24
Sorry for the delays here. I'll do my best to get this tested soon. This shouldnt have been stuck in PR hell this long. |
Fix for issue #24
I am unable to test it as I don't have any real hardware, I have attached a test program that runs it through short reads and invalid data.
main.c.txt