diff options
author | Scott Chao <scott.chao@bitland.corp-partner.google.com> | 2020-04-30 10:36:39 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-05 06:49:18 +0000 |
commit | 4711c8b28efc892d3785bbfed69fd7545e63375d (patch) | |
tree | 1e354939ebb90c7c43691c1f29cdbeea63739742 /board/damu | |
parent | 5dd846bab1788fb4dc71a1b09eb9a5aa94764024 (diff) | |
download | chrome-ec-4711c8b28efc892d3785bbfed69fd7545e63375d.tar.gz |
damu: fix lid sensor rotation matrix
BUG=b:155315888
BRANCH=kukui
TEST=make -j BOARD=damu
TEST=make buildall
TEST=boot into OS and screen show normally.
Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com>
Change-Id: I65176198555e37bb5deb7f54cbf49e767fe4253f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2172284
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/damu')
-rw-r--r-- | board/damu/board.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/board/damu/board.c b/board/damu/board.c index dab8e8684a..71f2a7da1f 100644 --- a/board/damu/board.c +++ b/board/damu/board.c @@ -337,15 +337,15 @@ static struct mutex g_base_mutex; /* Rotation matrixes */ static const mat33_fp_t base_standard_ref = { - {0, FLOAT_TO_FP(1), 0}, - {FLOAT_TO_FP(-1), 0, 0}, - {0, 0, FLOAT_TO_FP(1)} + {FLOAT_TO_FP(1), 0, 0}, + {0, FLOAT_TO_FP(-1), 0}, + {0, 0, FLOAT_TO_FP(-1)} }; static const mat33_fp_t lid_standard_ref = { - { 0, FLOAT_TO_FP(-1), 0}, - { FLOAT_TO_FP(-1), 0, 0}, - { 0, 0, FLOAT_TO_FP(-1)} + {FLOAT_TO_FP(-1), 0, 0}, + {0, FLOAT_TO_FP(-1), 0}, + {0, 0, FLOAT_TO_FP(1) } }; /* sensor private data */ |