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:
11:6f5a8a88fa21
Parent:
10:057620949ce1
Child:
12:310d5488e48a
--- a/main.cpp	Fri Feb 20 20:11:41 2015 +0000
+++ b/main.cpp	Fri Feb 20 22:52:22 2015 +0000
@@ -97,7 +97,7 @@
         printf("Check failed...aborting power-on\r\n");
         return 1;
     }
-    printf("ERRFILE/SDCARD checks passed!\r\n");
+    //printf("ERRFILE/SDCARD checks passed!\r\n");
     int dataIn[4], dataOut[4], buffer;
     dataOut[0]=7;
     dataOut[1]=30;
@@ -110,8 +110,10 @@
     //float blah=1;
     //t_debug.start();
     while (1) { //Run these functions as fast as possible
-
+        boardLed1 = !boardLed1;
+        phone.attachment();
         if(comm.receive()) {
+            //boardLed1 = !boardLed1;
             dataIn[0] = comm.read();
             comm.reply(UI);         // Make this the next reply
             while(dataIn[0]==7) {
@@ -133,6 +135,7 @@
                 }
             }
         if(comm.receive()) {
+            //boardLed2 = !boardLed2;
             buffer = comm.read();
             if(buffer==0xFE) { //end of message
                 ii=0;
@@ -144,7 +147,9 @@
                         //pc.printf("%x\r\n",msg.data[0]);
                     }
                 }
-                phone.attachment();
+                //boardLed1 != boardLed1;
+               // pc.printf("Entering attachment\r\n");
+               // phone.attachment();
             } else if(buffer==0xFF) { //beginning of message
                 ii=1;
                 dataIn[0]=buffer;
@@ -160,6 +165,7 @@
             }
 
         }
+        //boardLed1 != boardLed1;
         if(counter>=15) {
             UI=0;//set the UI to 0 unless it's changed in checkUI_Xbee()
             userInterface.readBuffer();
@@ -170,6 +176,7 @@
         }
         counter++;
       }
-
+        
     }
+    
 }
\ No newline at end of file