diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2017-09-19 16:02:34 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2017-09-20 18:31:53 +0000 |
commit | b40f2474d2bdd8e1c653ef70635ceb1dd23daf72 (patch) | |
tree | a113d72524aa62df94e195ba18bfe4747e484fca | |
parent | e0b4a3d205d4a58605be86804a0b607dadeacb18 (diff) | |
download | chrome-ec-b40f2474d2bdd8e1c653ef70635ceb1dd23daf72.tar.gz |
driver: bm160: Fix minimal gyro frequencyv1.11.0
Was set in Hz unit instead of mHz.
The minimal frequency of the gyroscope is 25Hz.
By setting it at 25mHz, we make believe that the gyro was also
supporting 5Hz or 10Hz: the test would complain when instead the samples
came with a 25Hz.
Fix up of cl/482703
BUG=b:65000611
TEST=compile
BRANCH=caroline,eve,twinkie
Change-Id: I162d0d2e9b545af82698d8d484875761f426efe4
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/675785
-rw-r--r-- | driver/accelgyro_bmi160.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accelgyro_bmi160.h b/driver/accelgyro_bmi160.h index 6031d8fb4e..89365488aa 100644 --- a/driver/accelgyro_bmi160.h +++ b/driver/accelgyro_bmi160.h @@ -420,7 +420,7 @@ enum fifo_header { /* Min and Max sampling frequency in mHz */ #define BMI160_ACCEL_MIN_FREQ 12500 #define BMI160_ACCEL_MAX_FREQ 1600000 -#define BMI160_GYRO_MIN_FREQ 25 +#define BMI160_GYRO_MIN_FREQ 25000 #define BMI160_GYRO_MAX_FREQ 3200000 extern const struct accelgyro_drv bmi160_drv; |