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 6ec903b917..dbab718a7a 100644
--- a/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c
+++ b/firmware/target/arm/tcc780x/cowond2/usb-cowond2.c
@@ -23,10 +23,10 @@
23#include "kernel.h" 23#include "kernel.h"
24#include "ata.h" 24#include "ata.h"
25 25
26/* USB detect is GPIOC 26 active low */ 26/* USB detect is GPIOC 26 */
27inline bool usb_detect(void) 27inline bool usb_detect(void)
28{ 28{
29 return (GPIOC & 1<<26)?false:true; 29 return (GPIOC & 1<<26);
30} 30}
31 31
32void usb_init_device(void) 32void usb_init_device(void)