02/07/15

Dependencies:   mbed

Dependents:   TabbedGUIMbed

Revision:
44:3b45ec49bc44
Parent:
43:8e154016dd89
Child:
45:eb06f1d42938
--- a/Data.cpp	Wed Jul 08 15:16:26 2015 +0000
+++ b/Data.cpp	Wed Jul 08 15:42:30 2015 +0000
@@ -5,14 +5,13 @@
 void initialise()
 { 
     FILE *fp1 = fopen("/local/Datalog.xls", "a");       // opens or creates fill Datalog, and gives the headings
-    fprintf(fp1, " Sensor Name \t Time \n");
+    fprintf(fp1, " Sensor Name \t Speed \n");
     fclose(fp1);
 }
 
 void data(int sensor_number, int speed)
 {
-    printf("it be printing");                 //testing
-    
+    printf("it be printing");                            //testing  
     FILE *fp = fopen("/local/Datalog.xls", "a");       // Open "Datalog
     fprintf(fp, " %d \t %d \n",sensor_number, speed);       //fills the tables with the results
     fclose(fp);