diff options
Diffstat (limited to 'board/homestar')
-rw-r--r-- | board/homestar/base_detect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/homestar/base_detect.c b/board/homestar/base_detect.c index 59303fa1b2..53688777c1 100644 --- a/board/homestar/base_detect.c +++ b/board/homestar/base_detect.c @@ -213,13 +213,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"); |