diff options
Diffstat (limited to 'firmware/target/sh/archos/recorder')
-rw-r--r-- | firmware/target/sh/archos/recorder/usb-recorder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/sh/archos/recorder/usb-recorder.c b/firmware/target/sh/archos/recorder/usb-recorder.c index 7ed237068e..dfa8462203 100644 --- a/firmware/target/sh/archos/recorder/usb-recorder.c +++ b/firmware/target/sh/archos/recorder/usb-recorder.c | |||
@@ -22,10 +22,11 @@ | |||
22 | #include "cpu.h" | 22 | #include "cpu.h" |
23 | #include "hwcompat.h" | 23 | #include "hwcompat.h" |
24 | #include "system.h" | 24 | #include "system.h" |
25 | #include "usb.h" | ||
25 | 26 | ||
26 | bool usb_detect(void) | 27 | int usb_detect(void) |
27 | { | 28 | { |
28 | return (adc_read(ADC_USB_POWER) > 500) ? true : false; | 29 | return (adc_read(ADC_USB_POWER) > 500) ? USB_INSERTED : USB_EXTRACTED; |
29 | } | 30 | } |
30 | 31 | ||
31 | void usb_enable(bool on) | 32 | void usb_enable(bool on) |