1
0
Fork 0
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:
Björn Stenberg 2004-06-10 15:03:09 +00:00
parent 8fc5b78200
commit 8eca851145

View file

@ -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);
} }
} }