forked from len0rd/rockbox
Try mounting all partitions after USB disconnect, just as on boot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4729 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8fc5b78200
commit
8eca851145
1 changed files with 6 additions and 2 deletions
|
@ -99,6 +99,7 @@ static void usb_slave_mode(bool on)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
DEBUGF("Leaving USB slave mode\n");
|
DEBUGF("Leaving USB slave mode\n");
|
||||||
|
|
||||||
/* Let the ISDx00 settle */
|
/* Let the ISDx00 settle */
|
||||||
|
@ -124,8 +125,11 @@ static void usb_slave_mode(bool on)
|
||||||
if (!pinfo)
|
if (!pinfo)
|
||||||
panicf("disk: NULL");
|
panicf("disk: NULL");
|
||||||
|
|
||||||
rc = fat_mount(pinfo[0].start);
|
for ( i=0; i<4; i++ ) {
|
||||||
if(rc)
|
if (!fat_mount(pinfo[i].start))
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (i==4)
|
||||||
panicf("mount: %d",rc);
|
panicf("mount: %d",rc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue