PIDs and fun

Dependencies:   btbee m3pi_ng mbed FatFileSystemCpp

Revision:
12:057471fb3616
Parent:
11:ac6112ca954f
Child:
13:0b1e1e90f147
diff -r ac6112ca954f -r 057471fb3616 main.cpp
--- a/main.cpp	Thu May 28 14:29:54 2015 +0000
+++ b/main.cpp	Thu May 28 14:32:08 2015 +0000
@@ -33,6 +33,16 @@
 
 int main() {
     
+    DIR *d;
+    struct dirent *p;
+   
+    d = opendir("/" FSNAME);
+    
+    FILE *fp = fopen( "/" FSNAME "/Fertig.txt", "w");
+    if ( fp == NULL )
+    {
+        m3pi.leds(1);
+    }
     
     
     btbee.reset();
@@ -310,6 +320,6 @@
 
         
     }
-
-
+    fprintf(fp,"LOL");
+    fclose(fp);
 }