summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-03-16 18:25:45 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-03-16 18:25:45 +0000
commitba2e8b163e07c8fef9bf9a5cac9d68bf63a2bf04 (patch)
tree1a3e9b301401e52782a082569eb4cccb1fba3f7c /firmware/powermgmt.c
parent4b68f1e2a3e0f57e723ad5fdab4f8970bcf66719 (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/powermgmt.c')
-rw-r--r--firmware/powermgmt.c6
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
)
{