summaryrefslogtreecommitdiff
path: root/board/coachz
diff options
context:
space:
mode:
Diffstat (limited to 'board/coachz')
-rw-r--r--board/coachz/base_detect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/coachz/base_detect.c b/board/coachz/base_detect.c
index 505714a016..1a27538166 100644
--- a/board/coachz/base_detect.c
+++ b/board/coachz/base_detect.c
@@ -214,13 +214,13 @@ static void base_init(void)
}
DECLARE_HOOK(HOOK_INIT, base_init, HOOK_PRIO_DEFAULT+1);
-void base_force_state(int state)
+void base_force_state(enum ec_set_base_state_cmd state)
{
- if (state == 1) {
+ if (state == EC_SET_BASE_STATE_ATTACH) {
gpio_disable_interrupt(GPIO_BASE_DET_L);
base_detect_change(BASE_CONNECTED);
CPRINTS("BD forced connected");
- } else if (state == 0) {
+ } else if (state == EC_SET_BASE_STATE_DETACH) {
gpio_disable_interrupt(GPIO_BASE_DET_L);
base_detect_change(BASE_DISCONNECTED);
CPRINTS("BD forced disconnected");