summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/usb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index b56f04fc43..db6297ecec 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -99,6 +99,7 @@ static void usb_slave_mode(bool on)
99 } 99 }
100 else 100 else
101 { 101 {
102 int i;
102 DEBUGF("Leaving USB slave mode\n"); 103 DEBUGF("Leaving USB slave mode\n");
103 104
104 /* Let the ISDx00 settle */ 105 /* Let the ISDx00 settle */
@@ -124,8 +125,11 @@ static void usb_slave_mode(bool on)
124 if (!pinfo) 125 if (!pinfo)
125 panicf("disk: NULL"); 126 panicf("disk: NULL");
126 127
127 rc = fat_mount(pinfo[0].start); 128 for ( i=0; i<4; i++ ) {
128 if(rc) 129 if (!fat_mount(pinfo[i].start))
130 break;
131 }
132 if (i==4)
129 panicf("mount: %d",rc); 133 panicf("mount: %d",rc);
130 } 134 }
131} 135}