summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/tcc780x/cowond2/usb-cowond2.c4
1 files 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 6ec903b..dbab718 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)