Skip to content
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

Implement serial header and checksum validation #3

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

basilhussain
Copy link

I noticed the serial transport recv_raw() doesn't verify the checksum, so I had a go at implementing validation of checksum, and also header.

Hopefully my code does things the proper way. It was a lot of trial-and-error and reading of the docs. 😄

src/transport/serial.rs Show resolved Hide resolved
@Thom-de-Jong
Copy link
Owner

Great to see your improvements 😃
Your background is probably c or c++ am I right 😝
I will merge and "rustify" things a bit

@Thom-de-Jong Thom-de-Jong merged commit b94fe5f into Thom-de-Jong:main Sep 5, 2024
Thom-de-Jong added a commit that referenced this pull request Sep 5, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants