diff options
-rw-r--r-- | firmware/target/arm/sandisk/sansa-e200/usb-e200.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/usb-e200.c b/firmware/target/arm/sandisk/sansa-e200/usb-e200.c index a538614da4..031ba07253 100644 --- a/firmware/target/arm/sandisk/sansa-e200/usb-e200.c +++ b/firmware/target/arm/sandisk/sansa-e200/usb-e200.c @@ -18,6 +18,7 @@ ****************************************************************************/ #include <stdbool.h> +#include "system.h" bool usb_init_device(void) { @@ -26,6 +27,8 @@ bool usb_init_device(void) bool usb_detect(void) { + if(GPIOB_INPUT_VAL & 0x10) + return true; return false; } |