diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2011-12-31 18:43:59 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2011-12-31 18:43:59 +0000 |
commit | 2115eac7bb599ccc321f43c3bfa1a11672fd4b3a (patch) | |
tree | 1cd19570528528898483ccb2e62044f17693872a /firmware/target/arm/imx233/powermgmt-imx233.c | |
parent | df09274768f020fe403cbe9475f5ba192247826d (diff) |
usb_plugged() is PP only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31489 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/powermgmt-imx233.c')
-rw-r--r-- | firmware/target/arm/imx233/powermgmt-imx233.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/powermgmt-imx233.c b/firmware/target/arm/imx233/powermgmt-imx233.c index 97f6e08e12..87c48e7655 100644 --- a/firmware/target/arm/imx233/powermgmt-imx233.c +++ b/firmware/target/arm/imx233/powermgmt-imx233.c @@ -21,7 +21,7 @@ #include "powermgmt.h" #include "power-imx233.h" -#include "usb-target.h" +#include "usb.h" #include "string.h" //#define LOGF_ENABLE #include "logf.h" @@ -60,7 +60,7 @@ void powermgmt_init_target(void) void charging_algorithm_step(void) { - bool is_5v_present = usb_plugged(); + bool is_5v_present = usb_detect() == USB_INSERTED; /* initial state & 5v -> battery transition */ if(!is_5v_present && charge_state != DISCHARGING) |