diff options
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r-- | firmware/common/disk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c index c9676ed285..25c7330032 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c | |||
@@ -200,9 +200,8 @@ int disk_mount(int drive) | |||
200 | volume != -1 && i < 4 && mounted < NUM_VOLUMES_PER_DRIVE; | 200 | volume != -1 && i < 4 && mounted < NUM_VOLUMES_PER_DRIVE; |
201 | i++) | 201 | i++) |
202 | { | 202 | { |
203 | if (memchr(fat_partition_types, pinfo[i].type, | 203 | if (pinfo[i].type == 0 || pinfo[i].type == 5) |
204 | sizeof(fat_partition_types)) == NULL) | 204 | continue; /* skip free/extended partitions */ |
205 | continue; /* not an accepted partition type */ | ||
206 | 205 | ||
207 | #ifdef MAX_LOG_SECTOR_SIZE | 206 | #ifdef MAX_LOG_SECTOR_SIZE |
208 | for (int j = 1; j <= (MAX_LOG_SECTOR_SIZE/SECTOR_SIZE); j <<= 1) | 207 | for (int j = 1; j <= (MAX_LOG_SECTOR_SIZE/SECTOR_SIZE); j <<= 1) |