CDMS code for testing sbc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Revision:
220:2aeab83212e6
Parent:
216:570251b23c7b
--- a/CDMS_PL.h	Sun Jul 03 15:28:43 2016 +0000
+++ b/CDMS_PL.h	Mon Jul 04 05:24:35 2016 +0000
@@ -76,6 +76,8 @@
     pl_tc_standby->TC_string[10] = (uint8_t)(crc16 & 0x00FF);\
     tm_ptr_standby =  FCTN_CDMS_RLY_TMTC(pl_tc_standby);\
     VERIFY_TM(tm_ptr_standby);\
+    delete pl_tc_standby;\
+    delete tm_ptr_standby;\
 }
 
 //TC_string[0] should not be 0x00
@@ -100,6 +102,8 @@
     pl_tc_hibernate->TC_string[10] = (uint8_t)(crc16 & 0x00FF);\
     tm_ptr_hibernate =  FCTN_CDMS_RLY_TMTC(pl_tc_hibernate);\
     VERIFY_TM(tm_ptr_hibernate);\
+    delete pl_tc_hibernate;\
+    delete tm_ptr_hibernate;\
 }
 
 //TC_string[0] should not be 0x00
@@ -125,6 +129,8 @@
     pl_tc_science->TC_string[10] = (uint8_t)(crc16 & 0x00FF);\
     tm_ptr_science =  FCTN_CDMS_RLY_TMTC(pl_tc_science);\
     VERIFY_TM(tm_ptr_science);\
+    delete pl_tc_science;\
+    delete tm_ptr_science;\
 }
 void print_processed_block(uint8_t index)
 {