lkdsnf;

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_PL_Working by Siva ram

Revision:
41:7e06018f6a1c
Parent:
35:3beac900a034
Child:
42:b7a4aac53314
--- a/COM_MNG_TMTC.h	Thu Jan 07 10:35:40 2016 +0000
+++ b/COM_MNG_TMTC.h	Sat Jan 09 10:24:14 2016 +0000
@@ -12,7 +12,7 @@
 
 #include "pinconfig.h"
 #include "i2c.h"
-#include "Flash.h"
+//#include "Flash.h"
 #include "cdms_rtc.h"
 
 DigitalIn tm_status_4m_slv(PIN39); //I2C interrupt to CDMS from BAE
@@ -425,8 +425,8 @@
 inline Base_tm* FCTN_CDMS_RLY_TMTC(Base_tc *tc_ptr){
     uint8_t ACKCODE = 0x00;
     printf("\rTC execution in progress\r\n");
-    Base_tm *tm_ptr = new Long_tm;
-    Base_tm *tm_pointer = tm_ptr;
+    Base_tm *tm_pointer = new Long_tm;
+    Base_tm *tm_ptr = tm_pointer;
     received = 0;
     switch(GETapid(tc_ptr))
     {
@@ -1394,13 +1394,13 @@
                                 }\
                                 /*gPC.puts("Printing Call Sign, ACK_L1, TM list");*/\
                                 for(int i = 0 ; i < length ; ++i){\
-                                    gPC.putc(tm_ptr->TM_string[i]);\
+                                    gPC.printf("%02X",tm_ptr->TM_string[i]);\
                                 }\
                                 tm_ptr = tm_ptr->next_TM;\
                             }\
                             /*SEND DATA TO GS*/\
-                            /*snd_tm.head_pointer(tm_ptr_head);*/\
-                            /*adf_not_SDcard();*/\
+                            snd_tm.head_pointer(tm_ptr_head);\
+                            adf_not_SDcard;\
                             /*DELETE THE TM AFTER USE*/\
                             tm_ptr = tm_ptr_head;\
                             overflowCountExecute = 0;\