diff options
Diffstat (limited to 'board/spring/board.c')
-rw-r--r-- | board/spring/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/spring/board.c b/board/spring/board.c index 444dc700b0..9e783d8081 100644 --- a/board/spring/board.c +++ b/board/spring/board.c @@ -294,8 +294,8 @@ int board_pmu_init(void) int board_get_ac(void) { - /* use TPSChrome VACG signal to detect AC state */ - return gpio_get_level(GPIO_BCHGR_VACG); + /* UVLO is 4.1V. We consider AC bad when its voltage drops below 4.3V */ + return adc_read_channel(ADC_CH_USB_VBUS_SNS) >= 4300; } int board_battery_led(enum charging_state state) |