diff options
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r-- | firmware/drivers/fat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index a710593a69..e319669e97 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -167,7 +167,9 @@ struct bpb | |||
167 | * of first pseudo cluster */ | 167 | * of first pseudo cluster */ |
168 | #endif /* #ifdef HAVE_FAT16SUPPORT */ | 168 | #endif /* #ifdef HAVE_FAT16SUPPORT */ |
169 | #ifdef HAVE_MULTIVOLUME | 169 | #ifdef HAVE_MULTIVOLUME |
170 | #ifdef HAVE_MULTIDRIVE | ||
170 | int drive; /* on which physical device is this located */ | 171 | int drive; /* on which physical device is this located */ |
172 | #endif | ||
171 | bool mounted; /* flag if this volume is mounted */ | 173 | bool mounted; /* flag if this volume is mounted */ |
172 | #endif | 174 | #endif |
173 | }; | 175 | }; |
@@ -285,7 +287,7 @@ void fat_init(void) | |||
285 | #endif | 287 | #endif |
286 | } | 288 | } |
287 | 289 | ||
288 | int fat_mount(IF_MV2(int volume,) IF_MV2(int drive,) long startsector) | 290 | int fat_mount(IF_MV2(int volume,) IF_MD2(int drive,) long startsector) |
289 | { | 291 | { |
290 | #ifndef HAVE_MULTIVOLUME | 292 | #ifndef HAVE_MULTIVOLUME |
291 | const int volume = 0; | 293 | const int volume = 0; |
@@ -309,7 +311,7 @@ int fat_mount(IF_MV2(int volume,) IF_MV2(int drive,) long startsector) | |||
309 | 311 | ||
310 | memset(fat_bpb, 0, sizeof(struct bpb)); | 312 | memset(fat_bpb, 0, sizeof(struct bpb)); |
311 | fat_bpb->startsector = startsector; | 313 | fat_bpb->startsector = startsector; |
312 | #ifdef HAVE_MULTIVOLUME | 314 | #ifdef HAVE_MULTIDRIVE |
313 | fat_bpb->drive = drive; | 315 | fat_bpb->drive = drive; |
314 | #endif | 316 | #endif |
315 | 317 | ||