summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/usb-fw-pp5002.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/usb-fw-pp5002.c')
-rw-r--r--firmware/target/arm/usb-fw-pp5002.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/usb-fw-pp5002.c b/firmware/target/arm/usb-fw-pp5002.c
index e64d4f8f81..2a216c4d9b 100644
--- a/firmware/target/arm/usb-fw-pp5002.c
+++ b/firmware/target/arm/usb-fw-pp5002.c
@@ -56,15 +56,15 @@ void usb_enable(bool on)
}
}
-bool usb_detect(void)
+int usb_detect(void)
{
#if defined(IPOD_1G2G) || defined(IPOD_3G)
/* GPIO C bit 7 is firewire detect */
if (!(GPIOC_INPUT_VAL & 0x80))
- return true;
+ return USB_INSERTED;
#endif
/* TODO: add USB detection for iPod 3rd gen */
- return false;
+ return USB_EXTRACTED;
}