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

fix: ST 0x25 log calculation #249

Merged
merged 1 commit into from
Oct 20, 2023
Merged

fix: ST 0x25 log calculation #249

merged 1 commit into from
Oct 20, 2023

Conversation

tkurki
Copy link
Member

@tkurki tkurki commented Oct 20, 2023

Fix the formula for calculating ST 0x25 datagram total log.

These are equivalent:

- >> 4 and multiply by 65536
- zero out the 8 least significant bits and multiply by 4096

but not both >>4 and multiply by 4096 that it was doing.

Fixes #248.

Fix the formula for calculating ST 0x25 datagram total
log calculation.

These are equivalent:
- >> 4 and multiply by 65536
- zero out the 8 least significant bits and multiply by 4096

but not both >>4 and multiply by 4096 that it was doing.

Fixes #248.
@tkurki tkurki added the fix label Oct 20, 2023
@tkurki tkurki merged commit ecfc937 into master Oct 20, 2023
@tkurki tkurki deleted the fix-seatalk-log branch October 20, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Seatalk 0x25 total log incorrect
1 participant