Fork of F12RFileSystem by
Revision 11:90747dece5a3, committed 2016-04-10
- Comitter:
- va009039
- Date:
- Sun Apr 10 07:40:26 2016 +0900
- Parent:
- 10:0f8c8845a40b
- Commit message:
- fix number_of_fats.
Changed in this revision
F32RFileSystem.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 0f8c8845a40b -r 90747dece5a3 F32RFileSystem.cpp --- 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);