summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-06-03 15:26:59 -0600
committerCommit Bot <commit-bot@chromium.org>2019-06-05 20:11:31 +0000
commite0f6c91881b2873a415d9debaf381dfada771629 (patch)
tree88f4b07b4e277380f9b131575eda3332817b5780 /board
parent6f07c6e7e389a63a4699f0ca846402e491aebb7d (diff)
downloadchrome-ec-e0f6c91881b2873a415d9debaf381dfada771629.tar.gz
arcada: use lid switch instead of gpio
Use the debounced lid switch state for lid close instead of the raw gpio. BRANCH=none BUG=b:126861777 TEST=tablet mode state is cleaner around 0 degrees Change-Id: I46d7e2ed7fa0af7f276662e5136613caaed539f7 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1641434 Reviewed-by: Duncan Laurie <dlaurie@google.com> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/arcada_ish/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/arcada_ish/board.c b/board/arcada_ish/board.c
index 725248a1b6..8d1566723e 100644
--- a/board/arcada_ish/board.c
+++ b/board/arcada_ish/board.c
@@ -155,7 +155,7 @@ int board_sensor_at_360(void)
* closed at 0 degrees. Ignore the hall sensor when the lid close is
* also active.
*/
- return gpio_get_level(GPIO_LID_OPEN) &&
+ return lid_is_open() &&
!gpio_get_level(HALL_SENSOR_GPIO_L);
}