Dependencies:   mbed SDFileSystem

Revision:
1:d2f06e666bc9
Parent:
0:061ea0ce0fd7
Child:
2:514cf0e05a63
--- 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);
 }