To fix the hang problem
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: COM_POWER_OFF_TX.h
- Revision:
- 211:77bee0cbebfe
- Parent:
- 160:ef280e6dda44
- Child:
- 212:3d13a06bcd3a
--- a/COM_POWER_OFF_TX.h Wed May 25 15:28:32 2016 +0000 +++ b/COM_POWER_OFF_TX.h Sat Jun 18 09:07:28 2016 +0000 @@ -17,6 +17,7 @@ RESET_tc->TC_string[9] = (crc16 & 0xFF00)>>8;\ RESET_tc->TC_string[10] = (crc16 & 0x00FF);\ FCTN_CDMS_RLY_TMTC(RESET_tc);\ + delete RESET_tc;\ } #define power_on_bae {\ @@ -39,6 +40,7 @@ power_on_BAE->TC_string[10] = (crc16 & 0x00FF);\ Base_tm *tm_ptr = new Short_tm;\ tm_ptr = FCTN_CDMS_RLY_TMTC(power_on_BAE);\ + delete power_on_BAE;\ /*DELETE THE TM AFTER USE*/\ Base_tm *del_tm = tm_ptr;\ int overCount = 0;\ @@ -76,6 +78,7 @@ beacon_tc->TC_string[10] = (crc16 & 0x00FF);\ Base_tm *tm_ptr = new Short_tm;\ tm_ptr = FCTN_CDMS_RLY_TMTC(beacon_tc);\ + delete beacon_tc;\ } #define COM_POWER_OFF_TX {\