summaryrefslogtreecommitdiff
path: root/common/motion_lid.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-12-28 10:59:19 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-04 18:07:12 -0800
commit1523e8b3ef04894d17dec57babed3da02f52fc6c (patch)
tree5b7c8fe616e84a01a380c2556c5812ea33b11f0b /common/motion_lid.c
parent4234992812588e2901192ca9ec8d94b074c6f5f5 (diff)
downloadchrome-ec-1523e8b3ef04894d17dec57babed3da02f52fc6c.tar.gz
motion: Disable tablet mode if one accel is broken
We need 2 accelerometer for tablet mode. If one of them is not working, disable tablet mode. We will stay in clamshell mode, lid angle will be always unreliable. BUG=chrome-os-partner:61141 TEST=On kevin with a single sensor. Check we are in clamshell mode when rebooting the EC. BRANCH=kevin Change-Id: I7bf6cdc9d85370fce20e5183622b4bc18f4f5f99 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/424184 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'common/motion_lid.c')
-rw-r--r--common/motion_lid.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/motion_lid.c b/common/motion_lid.c
index f2c6863b80..a5183e008d 100644
--- a/common/motion_lid.c
+++ b/common/motion_lid.c
@@ -253,7 +253,6 @@ static int calculate_lid_angle(const vector_3_t base, const vector_3_t lid,
tablet_mode_debounce_cnt =
TABLET_MODE_DEBOUNCE_COUNT;
tablet_set_mode(new_tablet_mode);
- hook_notify(HOOK_TABLET_MODE_CHANGE);
return reliable;
}
tablet_mode_debounce_cnt--;