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 3e43e1c787..0c8997d94a 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -1989,3 +1989,8 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry) } return 0; } + +int fat_get_cluster_size(void) +{ + return fat_bpb.bpb_secperclus * SECTOR_SIZE; +} |