For thermal pod

Dependencies:   Hepta9axis HeptaBattery HeptaCamera_GPS HeptaTemp HeptaXbee SDFileSystem mbed

Revision:
21:0d70132497a2
Parent:
18:191d9868effe
Child:
22:3c013a3a56cf
--- a/main.cpp	Tue Sep 12 08:16:42 2017 +0000
+++ b/main.cpp	Tue Sep 12 08:33:21 2017 +0000
@@ -34,7 +34,6 @@
                     tt.reset();
                 }
                 fclose(fp);
-                xbee.initialize();
             }
 
             if(rcmd == 'b') {
@@ -51,7 +50,6 @@
                     tt.reset();
                 }
                 fclose(fp);
-                xbee.initialize();
             }
 
             if(rcmd == 'c') {
@@ -64,7 +62,6 @@
                     pc.printf("SD Check Complete!!\r\n");
                     fclose(fp);
                 }
-                xbee.initialize();
             }
 
             if(rcmd == 'd') {
@@ -75,9 +72,8 @@
 
 
                 ///////////////////////////
-                xbee.initialize();
             }
-
+            xbee.initialize();
         }//cmdflag = 1
     }//while
 }//main
\ No newline at end of file