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: MAX31855 SDFileSystem mbed
Diff: SDSaveFunction.cpp
- Revision:
- 9:c97cd10b11ac
- Parent:
- 8:882ccc7bbc8a
diff -r 882ccc7bbc8a -r c97cd10b11ac SDSaveFunction.cpp
--- 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);
}
