avec dfu
Fork of Utils by
Revision 1:a937433a95c8, committed 2018-02-08
- Comitter:
- POTLESS_2
- Date:
- Thu Feb 08 12:14:52 2018 +0000
- Parent:
- 0:794c15bd30b0
- Child:
- 2:5af7a1fb1903
- Commit message:
- mod;
Changed in this revision
Utils.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Utils.cpp Tue Feb 06 13:15:53 2018 +0000 +++ b/Utils.cpp Thu Feb 08 12:14:52 2018 +0000 @@ -49,7 +49,7 @@ FILE* fd = fopen(filename, "r"); errno_error(fd); - + while ((c != '\n') && (i < 10)) { c = fgetc(fd); buffer[i] = c; @@ -130,7 +130,7 @@ int error = 0; error = fs.mount(&bd); return_error(error); - if (error) { + if (error > 0) { //On re format s'il n'y a as de file system...normalement une seul fois... printf("Pas de File system, on format... "); Format_SD();