-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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: bmi08x: fix temperature interface and trigger setting #82405
drivers: sensor: bmi08x: fix temperature interface and trigger setting #82405
Conversation
Code Lints and commit lints are fixed, please check again |
remove the merge commit, you must always rebase, and this should all only be 1 commit |
4ff0197
to
0e2d95d
Compare
I've removed, thank you. |
16c07a2
to
774add6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix the compliance issues
774add6
to
1c6d69e
Compare
Hmmmm, can anybody please tell me why there are 4 pending checks still...? |
A maintainer needs to kick the CI manually for contributions coming from new contributors. I just did :) thanks! |
1c6d69e
to
30b8d10
Compare
30b8d10
to
1c6d69e
Compare
Thanks for your contribution! |
@MaureenHelm Please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but just few suggestions to improve the code
d66b23f
to
47d9e45
Compare
47d9e45
to
cc4241a
Compare
Pls fix the CI |
cc4241a
to
3200e00
Compare
Sorry for that, clang-format in my local workspace doesn't meet the zephyr project requirements very well. |
3200e00
to
6a9c8cb
Compare
1. Temperature Interface According to BMI08x datasheet, temperature reading requires both MSB and LSB bytes to be read and processed correctly. Temp data processing should follow the formula: Temp in °C = (temp_msb * 8) + (temp_lsb / 32) This patch implements the correct reading sequence and calculation method as specified in the datasheet. 2. Trigger Setting Previously we set handler and then trigger struct. However under some situation, as long as we set the handler, we get into ISR immediately and never set trigger struct. I simply changed the sequence. Testing: - Verified temperature readings match datasheet - Tested on stm32f407igh board with BMI08x sensor Fixes: zephyrproject-rtos#82375 Signed-off-by: Wenxi Xu <xuwenxi0517@gmail.com>
6a9c8cb
to
13b045b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refreshing my +1
Hi @ttwards! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
According to BMI08x datasheet, temperature reading
requires both MSB and LSB bytes to be read and
processed correctly.
Temp data processing should follow the formula:
Temp in °C = (temp_msb * 8) + (temp_lsb / 32)
This patch implements the correct reading
sequence and calculation method as specified
in the datasheet.
Previously we set handler and then trigger struct.
However under some situation, as long as we set
the handler, we get into ISR immediately and never
set trigger struct.
I simply changed the sequence.
Testing:
Datasheet: