summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTino Liu <tino.liu@quanta.corp-partner.google.com>2018-08-30 17:33:17 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-09-04 16:53:42 -0700
commit17502f46b05bb0e8702b8019dfdf79cc4019a3c9 (patch)
treeb9e2e8aae1d5061fa83a0e543906e4fe3a731da1
parentc2154182985c384f8484f03a8d1d2079ba8858c9 (diff)
downloadchrome-ec-17502f46b05bb0e8702b8019dfdf79cc4019a3c9.tar.gz
Bobba: Set motion_sensor_count to 0 for clamshells
Clamshell Bobba has no motion sensors, motion_sensor_count should be 0. BUG=none BRANCH=none TEST=make buildall Change-Id: I59b0154ecad636e4cdfdbaca2bffe33d67e1df13 Signed-off-by: Tino Liu <tino.liu@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1196566 Commit-Ready: Jett Rink <jettrink@chromium.org> Tested-by: Ryan Zhang <ryan.zhang@quanta.corp-partner.google.com> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--board/bobba/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/bobba/board.c b/board/bobba/board.c
index 3be6443893..6125356343 100644
--- a/board/bobba/board.c
+++ b/board/bobba/board.c
@@ -197,8 +197,8 @@ static void setup_motion_sensors(uint8_t sku_id)
{
/* SKU ID of Bobba360 and Sparky360: 9, 25, 26 */
if (sku_id != 9 && sku_id != 25 && sku_id != 26) {
- /* Clamshell Bobba has no base accel and base gyro */
- motion_sensor_count = ARRAY_SIZE(motion_sensors) - 2;
+ /* Clamshell Bobba has no motion sensors. */
+ motion_sensor_count = 0;
}
}