Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ExoController MODSERIAL SDFileSystem_HelloWorld UI-Honka mbed
Fork of Data Management by
Diff: main.cpp
- 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;
     }
    