Commit 2f5ae85
committed
ATLEDGE-572: Fix getStepDetectionMode()
This function is reading all 8 bits of RA_STEP_CONF_1 (0x7A-0x7B)
to obtain a value for min_step_buf, though this value is only
represented by the lower 3 bits; bit 4 is used as the 'enable' bit.
As a consequence, this function will read the step detection mode
incorrectly when step counting is enabled. Fix this by only reading
the lower 3 bits of RA_STEP_CONF_1.1 parent de30a61 commit 2f5ae85
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | | - | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
828 | 831 | | |
829 | 832 | | |
830 | 833 | | |
| |||
0 commit comments