diff options
| -rw-r--r-- | firmware/usb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index b56f04f..db6297e 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -99,6 +99,7 @@ static void usb_slave_mode(bool on) } else { + int i; DEBUGF("Leaving USB slave mode\n"); /* Let the ISDx00 settle */ @@ -124,8 +125,11 @@ static void usb_slave_mode(bool on) if (!pinfo) panicf("disk: NULL"); - rc = fat_mount(pinfo[0].start); - if(rc) + for ( i=0; i<4; i++ ) { + if (!fat_mount(pinfo[i].start)) + break; + } + if (i==4) panicf("mount: %d",rc); } } |