CDMS code for testing sbc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Revision:
225:e6a3ffe4a530
Parent:
210:f4acf895b598
Child:
229:42624b9a08b4
Child:
245:da9d1bd999da
--- a/CDMS_PL.h	Mon Jul 04 14:31:30 2016 +0000
+++ b/CDMS_PL.h	Mon Jul 04 14:48:16 2016 +0000
@@ -77,6 +77,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
@@ -101,6 +103,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
@@ -126,6 +130,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)
 {