forked from len0rd/rockbox
usb_plugged() is PP only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31489 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
df09274768
commit
2115eac7bb
13 changed files with 14 additions and 33 deletions
|
|
@ -73,7 +73,7 @@ static void usb_mode(int connect_timeout)
|
|||
break;
|
||||
}
|
||||
|
||||
if(!usb_plugged())
|
||||
if(usb_detect() == USB_EXTRACTED)
|
||||
break; /* Cable pulled */
|
||||
}
|
||||
|
||||
|
|
@ -149,7 +149,7 @@ void main(uint32_t arg, uint32_t addr)
|
|||
if((ret = disk_mount_all()) <= 0)
|
||||
error(EDISK, ret, false);
|
||||
|
||||
if(usb_plugged())
|
||||
if(usb_detect() == USB_INSERTED)
|
||||
usb_mode(HZ);
|
||||
|
||||
printf("Loading firmware");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue