LIS2DW12: Conversion function bit-shift reliance in self-test example
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- c
- Domain
- embedded-iot
Research direction
Read lis2dw12_STdC/examples/lis2dw12_self_test.c and trace the data passed to lis2dw12_from_fs4_to_mg. Compare that input with the conversion function's right-aligned expectation described in the issue. Done means the self-test example passes appropriately shifted data to the conversion function.
Written by the indexing model from the issue text.
Description
Device part numbers
LIS2DW12
Describe the bug
This commit as part of v2.3.0 release updated the conversion functions to expect right-aligned (bit shifted right by 2) data whereas up until now it was expecting the 16-bit data as it comes from the chip - as commented here. The examples, in particular the self-test one, has not been updated to right shift the data before calling the lis2dw12_from_fs4_to_mg function.
- Dominant language
- C
- Stars
- 885
- Forks
- 538
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from STMicroelectronics/STMems_Standard_C_drivers
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
bug
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
question
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in STMicroelectronics/STMems_Standard_C_drivers
Similar issues
-
priority:medium type:chore
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
crazy-goat/php-fpm-ng#1041 ·
Maintainers usually reply within 1 day
-
Test failure on FreeBSD: #26 unexpected system_clock sourcePossibly taken A pull request linked to this issue is open or already merged. Openlow priority rt_lib tests
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100