diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-03-16 17:34:37 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-03-16 17:34:37 +0000 |
commit | 4b68f1e2a3e0f57e723ad5fdab4f8970bcf66719 (patch) | |
tree | 2b2fe9eb89edff9810aa7e8e927e149b23e4c277 /firmware/powermgmt.c | |
parent | d4f9ebe2c3025339e414b5b139027f19fc9a6b14 (diff) |
Proper charger input, usb and charger activity detection/reporting for ipod video
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9061 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 8f4f22fb3f..b135a291d0 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -456,6 +456,8 @@ static int runcurrent(void) if(usb_inserted() #if defined(HAVE_USB_POWER) && (CURRENT_USB < CURRENT_NORMAL) || usb_powered() +#else + && !usb_powered() #endif ) { |