
.
Dependencies: SDHCFileSystem mbed
Revision 16:ec5fcd5d1bb8, committed 2012-12-16
- Comitter:
- TickTock
- Date:
- Sun Dec 16 22:08:23 2012 +0000
- Parent:
- 15:3ff21ce810da
- Child:
- 17:f0209f149b3e
- Commit message:
- doesn't work;
Changed in this revision
chan_fatfs.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/chan_fatfs.lib Sun Dec 16 22:08:23 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/emh203/code/chan_fatfs/#68378811b1e2
--- a/main.cpp Sun Dec 16 17:25:59 2012 +0000 +++ b/main.cpp Sun Dec 16 22:08:23 2012 +0000 @@ -87,7 +87,7 @@ #define upLine "\033[1A" #define maxBufLen 2048 #define canTimeout 5 -#define maxFileNum 100 +#define maxFileNum 20 void Log (char *message); void LogErr (char *message); @@ -300,7 +300,7 @@ pc.printf("Removing file %s\n",fileName); remove(fileName); file = fopen(fileName, "r"); - if (file != NULL) + if (!(file == NULL)) pc.printf("Unable to delete %s\n"); // write full timestamp secs = time(NULL); // seconds past 12:00:00 AM 1 Jan 1900