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

sensors/ms56xx: fix crc4 calculations #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justapotato213
Copy link

@justapotato213 justapotato213 commented Nov 9, 2024

Summary

Fix CRC4 calculations for msxxxx sensors, using implementation from application note 520. Previous implementation returned the wrong value.

Impact

ms5611 sensors no longer report a CRC mismatch error and initialize properly.

Testing

Tested with a raspberrypi pico w with a ms5611 barometer over i2c, device driver initialized properly.

@justapotato213 justapotato213 changed the title fix crc4 calculations sensors/ms56xx: fix crc4 calculations Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant