diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-03-16 18:25:45 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-03-16 18:25:45 +0000 |
commit | ba2e8b163e07c8fef9bf9a5cac9d68bf63a2bf04 (patch) | |
tree | 1a3e9b301401e52782a082569eb4cccb1fba3f7c /firmware | |
parent | 4b68f1e2a3e0f57e723ad5fdab4f8970bcf66719 (diff) |
Fix red and yello build table
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9062 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/powermgmt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index b135a291d0..c80e711a16 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -454,10 +454,12 @@ static int runcurrent(void) #endif /* MEM == 8 */ if(usb_inserted() -#if defined(HAVE_USB_POWER) && (CURRENT_USB < CURRENT_NORMAL) +#if defined(HAVE_USB_POWER) + #if (CURRENT_USB < CURRENT_NORMAL) || usb_powered() -#else + #else && !usb_powered() + #endif #endif ) { |