diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2012-07-10 09:35:01 +0200 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2012-07-10 09:35:01 +0200 |
commit | 5a89549c86e17cfba4390d303812869d339d6e75 (patch) | |
tree | bb11e636e48ea841bb0677befad6beee67fe64ef | |
parent | b43171dcdf71c5e33723da9e3394adcca91b43fd (diff) | |
download | rockbox-5a89549c86e17cfba4390d303812869d339d6e75.tar.gz rockbox-5a89549c86e17cfba4390d303812869d339d6e75.zip |
rk27generic: fix charging_state()
Change-Id: Iefa7fa4f9b2e535e2ab9004ffe8eeb8adf203f4b
-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 | } |