diff options
-rw-r--r-- | firmware/target/arm/rk27xx/rk27generic/power-rk27generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/rk27xx/rk27generic/power-rk27generic.c b/firmware/target/arm/rk27xx/rk27generic/power-rk27generic.c index 45cc390d13..68594d0f0e 100644 --- a/firmware/target/arm/rk27xx/rk27generic/power-rk27generic.c +++ b/firmware/target/arm/rk27xx/rk27generic/power-rk27generic.c | |||
@@ -45,5 +45,5 @@ unsigned int power_input_status(void) | |||
45 | 45 | ||
46 | bool charging_state(void) | 46 | bool charging_state(void) |
47 | { | 47 | { |
48 | return true; | 48 | return (usb_detect() == USB_INSERTED); |
49 | } | 49 | } |