Nathaniel Honka / Mbed 2 deprecated Data-Management-Honka

Dependencies:   ExoController MODSERIAL SDFileSystem_HelloWorld UI-Honka mbed

Fork of Data Management by HEL's Angels

Revision:
10:057620949ce1
Parent:
9:26e200175e0e
Child:
11:6f5a8a88fa21
--- a/main.cpp	Wed Feb 18 01:11:47 2015 +0000
+++ b/main.cpp	Fri Feb 20 20:11:41 2015 +0000
@@ -80,11 +80,20 @@
 }
 */
 
+void reset_card() {
+    int error[] = {0x0000};
+    //err("/sd/", "error.txt", true);
+    err.open_for_write("/sd/", "error.txt");
+    err.write(1, error);
+    err.close();
+}
+
 int main()
 {
     //printf("ENTERING MAIN\r\n");
     if (!check_errfile() || !check_sdcard()) {
       //if (!check_sdcard()) {
+       // reset_card();
         printf("Check failed...aborting power-on\r\n");
         return 1;
     }