From 679ec2fca47fcc2f8ebf4e07eb7089e6bbc776f1 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Tue, 19 Sep 2017 16:02:34 -0700 Subject: driver: bm160: Fix minimal gyro frequency 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 Reviewed-on: https://chromium-review.googlesource.com/675784 --- driver/accelgyro_bmi160.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/accelgyro_bmi160.h b/driver/accelgyro_bmi160.h index 06be4addd9..279117193c 100644 --- a/driver/accelgyro_bmi160.h +++ b/driver/accelgyro_bmi160.h @@ -418,7 +418,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; -- cgit v1.2.1