summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 3e6f058bf1..268cab6d4c 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -173,7 +173,8 @@ static void usb_tick(void)
173 if(usb_monitor_enabled) 173 if(usb_monitor_enabled)
174 { 174 {
175#ifdef ARCHOS_RECORDER 175#ifdef ARCHOS_RECORDER
176 current_status = (PCDR & 0x04)?true:false; 176 /* If AN2 reads more than about 500, the USB is inserted */
177 current_status = (adc_read(2) > 500);
177#else 178#else
178 current_status = (PADR & 0x8000)?false:true; 179 current_status = (PADR & 0x8000)?false:true;
179#endif 180#endif