summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/main.c b/apps/main.c
index e7098b979a..895f79af3b 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -132,13 +132,8 @@ void init(void)
132 panicf("disk: NULL"); 132 panicf("disk: NULL");
133 133
134 for ( i=0; i<4; i++ ) { 134 for ( i=0; i<4; i++ ) {
135 if ( pinfo[i].type == PARTITION_TYPE_FAT32 || 135 if (!fat_mount(pinfo[i].start))
136 pinfo[i].type == PARTITION_TYPE_FAT32_LBA ) {
137 rc = fat_mount(pinfo[i].start);
138 if(rc)
139 panicf("mount: %d",rc);
140 break; 136 break;
141 }
142 } 137 }
143 if ( i==4 ) { 138 if ( i==4 ) {
144 DEBUGF("No partition found, trying to mount sector 0.\n"); 139 DEBUGF("No partition found, trying to mount sector 0.\n");