diff options
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r-- | firmware/drivers/fat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 7fe011c863..78d0f8ff44 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -218,6 +218,11 @@ static int first_sector_of_cluster(int cluster) | |||
218 | return (cluster - 2) * fat_bpb.bpb_secperclus + fat_bpb.firstdatasector; | 218 | return (cluster - 2) * fat_bpb.bpb_secperclus + fat_bpb.firstdatasector; |
219 | } | 219 | } |
220 | 220 | ||
221 | int fat_startsector(void) | ||
222 | { | ||
223 | return fat_bpb.startsector; | ||
224 | } | ||
225 | |||
221 | int fat_mount(int startsector) | 226 | int fat_mount(int startsector) |
222 | { | 227 | { |
223 | unsigned char buf[SECTOR_SIZE]; | 228 | unsigned char buf[SECTOR_SIZE]; |