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

Correct fillbits in multipart encoding #69

Merged
merged 2 commits into from
May 13, 2022
Merged

Conversation

Krakoer
Copy link
Contributor

@Krakoer Krakoer commented May 9, 2022

The fillbits field was set to fillbits value for every fragment, instead of only the last one. The fillbits field for every other fragment should be set to 0.
This leaded to multipart AIS encoding error.

I corrected the bug in encode.py, and corrected the related tests.

@M0r13n
Copy link
Owner

M0r13n commented May 13, 2022

@Krakoer Thanks for bringing this up. Great that you directly fixed the code. 👍

@M0r13n M0r13n merged commit a878baa into M0r13n:master May 13, 2022
@M0r13n M0r13n mentioned this pull request May 21, 2022
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