Skip to content

Modification of casting for LSB and MSB for X, Y, and Z data readings #8

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

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

Conversation

norn93
Copy link

@norn93 norn93 commented May 21, 2024

Modification of casting for LSB and MSB for X, Y, and Z data readings to avoid 2s complement overflow error.

See this TI forum post where Alicia discusses this possibility. I was getting 50% of my readings to more or less fail because they were not adding correctly. This pull request only changes the casting of the MSB and LSB from int8_t to uint8_t

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.

1 participant