Norimasa Okamoto / F32RFileSystem

Fork of F12RFileSystem by Norimasa Okamoto

Revision:
11:90747dece5a3
Parent:
10:0f8c8845a40b
--- a/F32RFileSystem.cpp	Sat Apr 09 05:35:46 2016 +0900
+++ b/F32RFileSystem.cpp	Sun Apr 10 07:40:26 2016 +0900
@@ -160,7 +160,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);
     // fat32
     sector_t number_of_per_fat = storage_peek(lba_offset + 0x24, 4);