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: DS1820 ExtendedTimer SDFileSystem mbed
Fork of FindingTemp by
Revision 3:1d8fca358781, committed 2017-08-02
- Comitter:
- JLarkin
- Date:
- Wed Aug 02 21:54:30 2017 +0000
- Parent:
- 2:98ae1b36758e
- Commit message:
- Changed SDFileSystem library to mbed_official version. Commands to mount and unmount are not part of this library.
Changed in this revision
| SDFileSystem.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SDFileSystem.lib Mon Jul 31 22:53:20 2017 +0000 +++ b/SDFileSystem.lib Wed Aug 02 21:54:30 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/neilt6/code/SDFileSystem/#e4d2567200db +https://developer.mbed.org/users/mbed_official/code/SDFileSystem/#8db0d3b02cec
--- a/main.cpp Mon Jul 31 22:53:20 2017 +0000
+++ b/main.cpp Wed Aug 02 21:54:30 2017 +0000
@@ -32,23 +32,22 @@
pc.printf("Let's do science!\r\n");
// Mount the filesystem
+ // Not needed with mbed_official version of the library
+ /*
bool mountFailure = fs.mount();
if (mountFailure != 0) {
pc.printf("Mount failure!\r\n");
return -1; // ends program with error status
}
pc.printf("Mount success!\r\n");
+ */
//File for arm 1 data
- FILE * output1;
+ FILE *output1 = fopen("/fs/Arm1.txt", "a");;
//file for arm 2 data
- FILE* output2;
+ FILE *output2 = fopen("/fs/Arm2.txt", "a");;
//file for tail data
- FILE* outputt;
-
- output1 = fopen("/fs/Arm1.txt", "a");
- output2 = fopen("/fs/Arm2.txt", "a");
- outputt = fopen("/fs/Tail.txt", "a");
+ FILE *outputt = fopen("/fs/Tail.txt", "a");;
ExtendedTimer t;
//start the timer
@@ -177,5 +176,4 @@
fclose(outputt);
fclose(output1);
fclose(output2);
- fs.unmount();
}
