FAT12 read only file system

Fork of FATFileSystem by mbed official

Files at this revision

API Documentation at this revision

Comitter:
va009039
Date:
Sun Apr 10 07:39:37 2016 +0900
Parent:
8:6c6acf81ff08
Commit message:
fix number_of_fats.

Changed in this revision

F12RFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6c6acf81ff08 -r d92e85b739a7 F12RFileSystem.cpp
--- 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);