summaryrefslogtreecommitdiff
path: root/firmware/target/sh/archos/recorder/usb-recorder.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/sh/archos/recorder/usb-recorder.c')
-rw-r--r--firmware/target/sh/archos/recorder/usb-recorder.c5
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
26bool usb_detect(void) 27int 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
31void usb_enable(bool on) 32void usb_enable(bool on)