summaryrefslogtreecommitdiff
path: root/firmware/common/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r--firmware/common/disk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c
index 3c1f01cc61..b77f2e294a 100644
--- a/firmware/common/disk.c
+++ b/firmware/common/disk.c
@@ -189,9 +189,8 @@ int disk_mount(int drive)
189#endif 189#endif
190 for (; volume != -1 && i<4 && mounted<NUM_VOLUMES_PER_DRIVE; i++) 190 for (; volume != -1 && i<4 && mounted<NUM_VOLUMES_PER_DRIVE; i++)
191 { 191 {
192 if (memchr(fat_partition_types, pinfo[i].type, 192 if (pinfo[i].type == 0 || pinfo[i].type == 5)
193 sizeof(fat_partition_types)) == NULL) 193 continue; /* skip free/extended partitions */
194 continue; /* not an accepted partition type */
195 194
196#ifdef MAX_LOG_SECTOR_SIZE 195#ifdef MAX_LOG_SECTOR_SIZE
197 int j; 196 int j;