Fixed issues with how we get the file store header size.

This commit is contained in:
2016-06-10 13:55:05 -05:00
parent 0a88618345
commit 980194f2a7
3 changed files with 30 additions and 15 deletions
+1
View File
@@ -15,6 +15,7 @@ int main() {
uint8_t volume[size];
char out[6];
uint32_t err;
FileStore32::format(volume, size);
FileStore32 fs(volume, volume + size, &err);
fs.write(42, (void*) "Hello", 6);
+1 -1
View File
@@ -13,7 +13,7 @@ int main() {
const auto size = 1 << 16;
uint8_t volume[size];
uint32_t err;
FileStore32::format(volume, size, false);
FileStore32::format(volume, size);
FileStore32(volume, volume + size, &err);
return err;
}