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

drivers: sensor: bmi160: Fix bug where undersampling is not set #33006

Merged
merged 1 commit into from
Mar 9, 2021
Merged

Conversation

gudnimg
Copy link
Contributor

@gudnimg gudnimg commented Mar 6, 2021

Fix #32774

Bit position BIT(7) is 1000 0000 in binary which is actually the
bit positon 128. BIT(7) can be used as a mask, but we need to define
the position specifically as the integer 7.

Signed-off-by: Guðni Már Gilbert [email protected]

Fix #32774

Bit position BIT(7) is 1000 0000 in binary which is actually the
bit positon 128. BIT(7) can be used as a mask, but we need to define
the position specifically as the integer 7.

Signed-off-by: Guðni Már Gilbert <[email protected]>
Copy link
Collaborator

@avisconti avisconti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!
LGTM

@carlescufi carlescufi merged commit 15d1ea5 into zephyrproject-rtos:master Mar 9, 2021
@gudnimg gudnimg deleted the bmi160-fix branch March 24, 2021 16:00
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.

Sensor BMI160: set of undersampling mode is not working
6 participants