diff options
Diffstat (limited to 'firmware/target/arm/as3525/power-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/power-as3525.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/power-as3525.c b/firmware/target/arm/as3525/power-as3525.c index 3570d7c75a..7b93dd1cd1 100644 --- a/firmware/target/arm/as3525/power-as3525.c +++ b/firmware/target/arm/as3525/power-as3525.c | |||
@@ -41,7 +41,7 @@ void power_init(void) | |||
41 | #if CONFIG_CHARGING | 41 | #if CONFIG_CHARGING |
42 | unsigned int power_input_status(void) | 42 | unsigned int power_input_status(void) |
43 | { | 43 | { |
44 | return (ascodec_read(AS3514_IRQ_ENRD0) & (1<<5)) ? | 44 | return ascodec_chg_status() ? |
45 | POWER_INPUT_MAIN_CHARGER : POWER_INPUT_NONE; | 45 | POWER_INPUT_MAIN_CHARGER : POWER_INPUT_NONE; |
46 | 46 | ||
47 | /* TODO: Handle USB and other sources properly */ | 47 | /* TODO: Handle USB and other sources properly */ |