diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2016-12-28 14:48:40 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-12-28 21:49:33 -0800 |
commit | 03bfb6f78fd978f33faff060ce4e796d0e0880b3 (patch) | |
tree | 9e8a8445761e7ba8651c6799f1f23c1c92492af2 /common/mag_cal.c | |
parent | d5bd0bd0f6798574ff7da1ba575753a9ce39719f (diff) | |
download | chrome-ec-03bfb6f78fd978f33faff060ce4e796d0e0880b3.tar.gz |
motion: Fix oversampling calculation
CL/385081 was incorrect, MAX should be used instead of MIN when calculating
the oversampling factor, to be sure it can't be 0.
BUG=b:27849483,chrome-os-partner:59423
BRANCH=reef
TEST=Using a special firmware on Reef reporting the ALS in motionsense,
check that oversampling is 1 when requested frequency is 5Hz while the
maximal frequency supported is 1Hz.
Check the ALS sensor reports information to ARC++.
Change-Id: I3c2d447bbc3a9ca0a5963aa86d5a24ee87ca6ab6
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/424221
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/mag_cal.c')
0 files changed, 0 insertions, 0 deletions