
.
Revision 10:38d6b74b0eb7, committed 2018-03-09
- Comitter:
- mbed_official
- Date:
- Fri Mar 09 19:30:20 2018 +0000
- Parent:
- 9:7d37032f7527
- Child:
- 11:656a96b9981b
- Commit message:
- Merge pull request #34 from ARMmbed/g-fix-read-after-write
Fixed issue with read after write
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-filesystem
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Feb 12 19:30:16 2018 +0000 +++ b/main.cpp Fri Mar 09 19:30:20 2018 +0000 @@ -145,6 +145,9 @@ // Store number fprintf(f, " %d\n", number); + + // Flush between write and read on same file + fflush(f); } printf("\rIncrementing numbers (%d/%d)... OK\n", 10, 10);