Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of FATFileSystem by
Revision 9:d92e85b739a7, committed 2016-04-10
- 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 |
--- 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);
