diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-07-12 22:26:06 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-15 03:39:21 +0000 |
commit | 2a929afefbc0ec387545646b107309fea2fd82bb (patch) | |
tree | 0942e0319e91007f7948ac574f648a994046974c /common/motion_sense.c | |
parent | e095bad64e5a9e27bdfadae2c0746d2ee151ef67 (diff) | |
download | chrome-ec-2a929afefbc0ec387545646b107309fea2fd82bb.tar.gz |
motion: Fix for FIFO support and BMI150
- Compass was not set properly if default config is set to
disable it (frequency == 0). We were trying to set it up
while stuck in debug mode.
- BMI150 FIFO collects sensor info even when suspended.
Ask FIFO to ommit suspended sensors.
- FIx compliation issue on nucleo-f411 board, where
MKBP is not enabled.
- Fix location of __packed arguement.
BRANCH=smaug
BUG=none
TEST=Check the compass is back with accelinfo,
FIFO is not filled with garbage with fiforead.
Check by echoing in in_accel_z_calibbias that the format
of MOTIONSENSE_CMD_SENSOR_OFFSET has not changed.
Change-Id: I7ebec12a14a74b8385b9f9532562a1fd0213f4d7
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/284929
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'common/motion_sense.c')
-rw-r--r-- | common/motion_sense.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c index 0fc71d1677..57a4bd26bb 100644 --- a/common/motion_sense.c +++ b/common/motion_sense.c @@ -467,7 +467,9 @@ void motion_sense_task(void) motion_sense_insert_timestamp(); fifo_flush_needed = 0; ts_last_int = ts_end_task; +#ifdef CONFIG_MKBP_EVENT mkbp_send_event(EC_MKBP_EVENT_SENSOR_FIFO); +#endif } #endif /* Delay appropriately to keep sampling time consistent. */ |