diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2023-03-14 01:59:26 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-23 17:23:48 +0000 |
commit | c1f6b2a249250fc4aad2b5c5693b8111d75d8d38 (patch) | |
tree | 74f2622039b76713a6250e7fc1432a1d0655c9c1 /test/build.mk | |
parent | d693ea3d4434a1c66605beb3c9e015e20b45a701 (diff) | |
download | chrome-ec-c1f6b2a249250fc4aad2b5c5693b8111d75d8d38.tar.gz |
common/tablet: Allow getting out of tablet mode when sensors are broken
When sensors stop working, at least one accelerometer, the EC can not
calculate the lid angle anymore.
Add hook to the lid opening event, to be able to get out out of tablet
mode when lid close.
Move scope of the variables that keep track of the lid angle deduced
from the GMR sensors.
BUG=b:267680317, b:270994196
BRANCH=trogdor, dedede, many more potentially.
TEST=Added unit tests.
Change-Id: Iaf7cc0d27fba32b3c8616a0674a47af815921ac4
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4338479
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'test/build.mk')
-rw-r--r-- | test/build.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/build.mk b/test/build.mk index e22563d064..923c141d33 100644 --- a/test/build.mk +++ b/test/build.mk @@ -102,6 +102,8 @@ test-list-host += static_if_error test-list-host += stdlib test-list-host += std_vector test-list-host += system +test-list-host += tablet_broken_sensor +test-list-host += tablet_no_sensor test-list-host += thermal test-list-host += timer test-list-host += timer_dos @@ -262,6 +264,8 @@ stm32f_rtc-y=stm32f_rtc.o stress-y=stress.o system-y=system.o system_is_locked-y=system_is_locked.o +tablet_broken_sensor-y=tablet_broken_sensor.o +tablet_no_sensor-y=tablet_no_sensor.o thermal-y=thermal.o timer_calib-y=timer_calib.o timer_dos-y=timer_dos.o |