Dependencies:   mbed SDFileSystem

Files at this revision

API Documentation at this revision

Comitter:
nucho
Date:
Thu Jul 08 04:43:03 2010 +0000
Parent:
0:061ea0ce0fd7
Child:
2:514cf0e05a63
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Jul 04 13:26:26 2010 +0000
+++ b/main.cpp	Thu Jul 08 04:43:03 2010 +0000
@@ -184,7 +184,7 @@
     init_lcd();
 
     if ((fpi=fopen("/sd/sample.bmp", "rb")) == NULL) {
-        fprintf(stderr, "input file open error\n");
+        printf(stderr, "input file open error\n");
         exit(1);
     }
 
@@ -201,4 +201,5 @@
         WriteDAT(dat2);
         WriteDAT(dat);
     }
+    fclose(fpi);
 }