Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2017-07-16 20:42:17 +0300
committerChristopher Haster <chaster@utexas.edu>2017-07-16 20:45:41 +0300
commit47db7a737060045f837408ae69736cc58dd4449c (patch)
tree630c4e1b18899e1343f89def988f649c1179a444 /README.md
parent476915fee646f6e082f5141ebbc377ae816ef79d (diff)
Added sanity check for compiling example
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0ae1cc6..e9e63b3 100644
--- a/README.md
+++ b/README.md
@@ -77,7 +77,6 @@ int main(void) {
// update boot count
boot_count += 1;
- printf("boot_count: %ld\n", boot_count);
lfs_file_rewind(&lfs, &file);
lfs_file_write(&lfs, &file, &boot_count, sizeof(boot_count));
@@ -86,6 +85,9 @@ int main(void) {
// release any resources we were using
lfs_unmount(&lfs);
+
+ // print the boot count
+ printf("boot_count: %d\n", boot_count);
}
```