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

Makes it possible to raise an exception if the checksum is invalid #83

Merged
merged 3 commits into from
Oct 2, 2022

Conversation

M0r13n
Copy link
Owner

@M0r13n M0r13n commented Oct 2, 2022

This PR makes is possible to add an exception if the checksum of a message is invalid. By default, this is set to False.

But as shown here there are valid use cases for raising exceptions.

@M0r13n M0r13n self-assigned this Oct 2, 2022
@M0r13n M0r13n added the enhancement New feature or request label Oct 2, 2022
@M0r13n
Copy link
Owner Author

M0r13n commented Oct 2, 2022

Hey @Inrixia

I added this PR to make is possible to raise an exception for invalid checksums. By default no exception is raised. So nothing changes.

May you take a look at it?

Copy link
Contributor

@Inrixia Inrixia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good, I double checked the changes to the NMEAMessage class against my code which has some logic touching it very closely and none of the changes break anything.

@M0r13n
Copy link
Owner Author

M0r13n commented Oct 2, 2022

@Inrixia

Thank you very much. It is always better to have a second pair of eyes looking at such changes! 👍

@M0r13n M0r13n merged commit 9a49a33 into master Oct 2, 2022
@M0r13n M0r13n deleted the raise-on-error branch March 4, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants