From b806894dcf5ef14474bed4e34d11fc7a829a656e Mon Sep 17 00:00:00 2001 From: rob Date: Sat, 22 Mar 2008 14:51:09 +0000 Subject: [PATCH] D2: Fix inverted USB detection. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16746 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/tcc780x/cowond2/usb-cowond2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c b/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c index 6ec903b91..dbab718a7 100644 --- a/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c +++ b/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c @@ -23,10 +23,10 @@ #include "kernel.h" #include "ata.h" -/* USB detect is GPIOC 26 active low */ +/* USB detect is GPIOC 26 */ inline bool usb_detect(void) { - return (GPIOC & 1<<26)?false:true; + return (GPIOC & 1<<26); } void usb_init_device(void) -- 2.11.4.GIT