diff options
-rw-r--r-- | board/taniks/sensors.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/taniks/sensors.c b/board/taniks/sensors.c index ca8afa7f8d..e546e0e42b 100644 --- a/board/taniks/sensors.c +++ b/board/taniks/sensors.c @@ -18,8 +18,9 @@ #include "temp_sensor.h" #include "thermal.h" #include "temp_sensor/thermistor.h" +#include "tablet_mode.h" -#if 0 +#if 1 #define CPRINTS(format, args...) ccprints(format, ## args) #define CPRINTF(format, args...) ccprintf(format, ## args) #else @@ -314,6 +315,8 @@ static void baseboard_sensors_init(void) } else { CPRINTS("Clamshell"); motion_sensor_count = 0; + gmr_tablet_switch_disable(); + gpio_set_flags(GPIO_TABLET_MODE_L, GPIO_INPUT | GPIO_PULL_DOWN); /* Gyro is not present, don't allow line to float */ gpio_set_flags(GPIO_EC_IMU_INT_R_L, GPIO_INPUT | GPIO_PULL_DOWN); |