diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-11-17 13:05:58 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-18 13:33:27 -0800 |
commit | 420099f74976b3af1f4b24dc24b9fec461b1037b (patch) | |
tree | ed28845a84cccfd5083902c5a12b36b4bb015247 /board/glados/board.c | |
parent | 192d0b4da107aa65c3e340e883034811601cbe17 (diff) | |
download | chrome-ec-420099f74976b3af1f4b24dc24b9fec461b1037b.tar.gz |
motion: Change units of ec_rate from us to ms.
To ease finer calculation of ec rate change units from
ms to us.
BRANCH=smaug
BUG=b:24367625
TEST=compile
Change-Id: I52057c8ca1b1180a64b58d1ba0af9ec53f40b026
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/312984
Diffstat (limited to 'board/glados/board.c')
-rw-r--r-- | board/glados/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/glados/board.c b/board/glados/board.c index 0ea36b3e1e..490d8ebb52 100644 --- a/board/glados/board.c +++ b/board/glados/board.c @@ -517,7 +517,7 @@ struct motion_sensor_t motion_sensors[] = { /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { .odr = 10000 | ROUND_UP_FLAG, - .ec_rate = 100, + .ec_rate = 100 * MSEC, }, /* Sensor off in S3/S5 */ [SENSOR_CONFIG_EC_S3] = { @@ -582,12 +582,12 @@ struct motion_sensor_t motion_sensors[] = { /* AP: by default use EC settings */ [SENSOR_CONFIG_AP] = { .odr = 10000 | ROUND_UP_FLAG, - .ec_rate = 100, + .ec_rate = 100 * MSEC, }, /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { .odr = 10000 | ROUND_UP_FLAG, - .ec_rate = 100, + .ec_rate = 100 * MSEC, }, /* unused */ [SENSOR_CONFIG_EC_S3] = { |