diff options
Diffstat (limited to 'board/nocturne/base_detect.c')
-rw-r--r-- | board/nocturne/base_detect.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/board/nocturne/base_detect.c b/board/nocturne/base_detect.c index dba2a542b4..9158fb26fb 100644 --- a/board/nocturne/base_detect.c +++ b/board/nocturne/base_detect.c @@ -17,12 +17,12 @@ */ #include "adc.h" +#include "base_state.h" #include "chipset.h" #include "common.h" #include "console.h" #include "gpio.h" #include "hooks.h" -#include "tablet_mode.h" #include "timer.h" #include "util.h" @@ -103,17 +103,12 @@ static void base_detect_changed(void) { switch (state) { case BASE_DETACHED: - /* Indicate that we are in tablet mode. */ - tablet_set_mode(1); + base_set_state(0); base_power_enable(0); break; case BASE_ATTACHED: - /* - * TODO(b/73133611): Note, this simple logic may suffice for - * now, but we may have to revisit this. - */ - tablet_set_mode(0); + base_set_state(1); base_power_enable(1); break; |