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:
parent
3189353946
commit
d1c88e728b
2 changed files with 8 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue