added spectrometer timeout

Dependencies:   SDFileSystem mbed

Fork of All_Combined_Real2 by Colin Maxfield

Revision:
8:6a694f87fb13
Parent:
7:a125a1fa4694
Child:
9:924d80730ac5
--- a/main.cpp	Thu Mar 31 19:54:55 2016 +0000
+++ b/main.cpp	Mon Apr 04 18:30:02 2016 +0000
@@ -75,6 +75,7 @@
     pc.printf("\r\n");
     fprintf(fpData, "\r\n");
     fclose(fpData);
+    
     XBeeSend((const char *)data, 2048);
 }
 
@@ -106,6 +107,8 @@
     fpData = fopen(OUTPUT_FILE, "a");
     fprintf(fpData, "%s", status_str);
     fclose(fpData);
+    
+    XBeeSend((const char *)status_str, strlen(status_str));
 }
 
 int main()