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(mpu6050): use correct variables #648

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

Rodrigodd
Copy link
Contributor

Never tested the code, but while reading it, I noticed that temp_offset was written to by mpu6050_get_accel_offset, but its value is never read from. In the next section, accel_bias_reg was read from, but never written to. From the code logic, I assume they should be the same variable.

The way the code was before, the "factory trim values" (as the comment above the code I changed describes) are being considered to be zero.

`temp_offset` was written but never read from, and `accel_bias_reg` was
read from, but never written to. From the code logic, they should be the
same variable.
@UncleRus
Copy link
Owner

Thank you!

@UncleRus UncleRus merged commit 3dc83b4 into UncleRus:master Jul 16, 2024
40 checks passed
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