From 4711c8b28efc892d3785bbfed69fd7545e63375d Mon Sep 17 00:00:00 2001 From: Scott Chao Date: Thu, 30 Apr 2020 10:36:39 +0800 Subject: 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 Change-Id: I65176198555e37bb5deb7f54cbf49e767fe4253f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2172284 Reviewed-by: Ting Shen --- board/damu/board.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'board') 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 */ -- cgit v1.2.1