Daniel Blomdahl / Mbed 2 deprecated multiple_variable_temp

Dependencies:   MAX31855 SDFileSystem mbed

Revision:
9:c97cd10b11ac
Parent:
8:882ccc7bbc8a
--- a/SDSaveFunction.cpp	Wed Apr 06 05:58:36 2016 +0000
+++ b/SDSaveFunction.cpp	Wed Apr 13 20:14:37 2016 +0000
@@ -29,7 +29,7 @@
         return -1;
     }
     // Write a header row
-    fprintf(fp, "Time (s) \t Temperature (t) \t Voltage (V)\n\r"); // Needs to be modified for your particular experiment
+    fprintf(fp, "Time (s) \t Temp1 (C) \t Temp2 (C) \t Voltage (V)\n\r"); // Needs to be modified for your particular experiment
     return 0;
 }
 
@@ -37,9 +37,10 @@
     fclose(fp);
     fs.unmount();
     pc.printf("It is now safe to remove the memory card.\r\n");
+    
     return 0;
 }
 
-void writeData(float time, float temp1, float temp2, float voltage) {  // Need to modify for your particular experiment 
-    fprintf(fp, "%.2f \t %.2f \t %.2f\n\r", time, temp1, temp2, voltage);
+void writeData(float time, float temp1, float temp2, float voltage) {  
+    fprintf(fp, "%.2f \t %.2f \t %.2f \t %.2f \n\r", time , temp1 , temp2 , voltage);
 }