mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
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>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
e095bad64e
commit
2a929afefb
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user