FAT12 read only file system

Fork of FATFileSystem by mbed official

Revision:
9:d92e85b739a7
Parent:
8:6c6acf81ff08
--- a/F12RFileSystem.cpp	Fri Apr 08 06:43:21 2016 +0900
+++ b/F12RFileSystem.cpp	Sun Apr 10 07:39:37 2016 +0900
@@ -148,7 +148,7 @@
     cluster_size = storage_peek(lba_offset + 13, 1) * 512;
     sector_t number_of_reserved_sectors = storage_peek(lba_offset + 14, 2);
     base_fat = lba_offset + number_of_reserved_sectors * 512;
-    int number_of_fats = storage_peek(lba_offset + 16, 2);
+    uint32_t number_of_fats = storage_peek(lba_offset + 16, 1);
     FS_TEST_ASSERT(number_of_fats == 1 || number_of_fats == 2);
     max_root_dir_entries = storage_peek(lba_offset + 17, 2);
     sector_t total_logical_sectors = storage_peek(lba_offset + 19, 2);