Thermal wake pod program

Dependencies:   DS1820 ExtendedTimer SDFileSystem mbed

Fork of FindingTemp by Julia Abbott

Files at this revision

API Documentation at this revision

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
diff -r 98ae1b36758e -r 1d8fca358781 SDFileSystem.lib
--- 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
diff -r 98ae1b36758e -r 1d8fca358781 main.cpp
--- 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();
 }