For thermal pod

Dependencies:   Hepta9axis HeptaBattery HeptaCamera_GPS HeptaTemp HeptaXbee SDFileSystem mbed

Revision:
23:ac2e4bf32370
Parent:
22:3c013a3a56cf
Child:
24:483cccf1a51e
--- a/main.cpp	Tue Sep 12 08:47:44 2017 +0000
+++ b/main.cpp	Tue Sep 12 09:01:49 2017 +0000
@@ -30,9 +30,9 @@
                     wait(0.5);
                     timer = tt.read();
                     fprintf(fp,"%f,%f,%f\r\n",timer,voltage,temp);
-                    tt.stop();
-                    tt.reset();
                 }
+                tt.stop();
+                tt.reset();
                 fclose(fp);
             }
 
@@ -46,9 +46,9 @@
                     wait(0.5);
                     timer = tt.read();
                     fprintf(fp,"%f,%f,%f\r\n",timer,voltage,temp);
-                    tt.stop();
-                    tt.reset();
                 }
+                tt.stop();
+                tt.reset();
                 fclose(fp);
             }