Skip to content

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