diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2020-01-08 17:36:58 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-09 19:41:36 +0000 |
commit | d1bbc3b869c0d0d659c84f7479b71a3e585e0f78 (patch) | |
tree | 83e7abb567178ffc52b012a730ac8a1a42c67692 /common | |
parent | 40f2ec90d28d55bbfad158f6db3fc1804dcf36c8 (diff) | |
download | chrome-ec-d1bbc3b869c0d0d659c84f7479b71a3e585e0f78.tar.gz |
common/motion_sense: fix compilation issue when MKBP is not set
When testing on nucleo board (not host attached), MKBP is not
compiled in. Be sure sensor code is not using any code from MKBP.
BUG=none
BRANCH=none
TEST=board nucleo-f072rb_iks01a2 compile.
Change-Id: Ic1e1a277affa3d0798e62171d4d477e2cb17366b
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1992799
Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/motion_sense_fifo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/motion_sense_fifo.c b/common/motion_sense_fifo.c index bdf39a857c..d9a0083086 100644 --- a/common/motion_sense_fifo.c +++ b/common/motion_sense_fifo.c @@ -472,7 +472,9 @@ void motion_sense_fifo_get_info( fifo_info->count = queue_count(&fifo); fifo_info->total_lost = fifo_lost; mutex_unlock(&g_sensor_mutex); +#ifdef CONFIG_MKBP_EVENT fifo_info->timestamp = mkbp_last_event_time; +#endif if (reset) fifo_lost = 0; |