1
0
Fork 0
forked from len0rd/rockbox

Now uses adc_read()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1276 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-06-30 20:24:57 +00:00
parent 3189353946
commit d1c88e728b
2 changed files with 8 additions and 13 deletions

View file

@ -173,7 +173,8 @@ static void usb_tick(void)
if(usb_monitor_enabled)
{
#ifdef ARCHOS_RECORDER
current_status = (PCDR & 0x04)?true:false;
/* If AN2 reads more than about 500, the USB is inserted */
current_status = (adc_read(2) > 500);
#else
current_status = (PADR & 0x8000)?false:true;
#endif