diff options
author | Jongpil Jung <jongpil19.jung@samsung.com> | 2018-01-10 16:49:21 +0900 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-10 21:19:00 -0800 |
commit | 66477c9767646e3a47a4fa1d8dc670bde72275e3 (patch) | |
tree | b80a02dd90bae977f702d9cb1d95a2fce1aea679 /board/nautilus/board.h | |
parent | 7bc128f7d1e7e6a59ed47cbb8ee9e944f17dc0b6 (diff) | |
download | chrome-ec-66477c9767646e3a47a4fa1d8dc670bde72275e3.tar.gz |
nautilus: bug fix in sensor index.
From comment, we should follow rule to use sensor index.
"the first 2 entries must be accelerometers, then gyroscope."
If not, screen rotation and clamshell/tablet mode switch in ui
will not work.
And I think we had better reorder "motion_sensors" structure
as well. Use tab indent instead of space.
BUG=b:71370092, b:71370114, b:69399214
BRANCH=none
TEST=check screeen rotation and tablet/clamshell mode.
Change-Id: I6b19411890c4e1abf9ceda45b47d18616c6e7b94
Signed-off-by: Jongpil Jung <jongpil19.jung@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/858878
Commit-Ready: Jongpil Jung <jongpil19.jung@samsung.corp-partner.google.com>
Tested-by: Jongpil Jung <jongpil19.jung@samsung.corp-partner.google.com>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'board/nautilus/board.h')
-rw-r--r-- | board/nautilus/board.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/nautilus/board.h b/board/nautilus/board.h index f6cd650b48..0624348812 100644 --- a/board/nautilus/board.h +++ b/board/nautilus/board.h @@ -211,9 +211,9 @@ enum temp_sensor_id { */ enum sensor_id { - BASE_ACCEL = 0, - BASE_GYRO, - LID_ACCEL, + LID_ACCEL = 0, + BASE_ACCEL, + BASE_GYRO, }; enum adc_channel { |