Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: main.cpp
- Revision:
- 266:ae588e75cfa4
- Parent:
- 264:f7d8f9f361e3
- Child:
- 267:783c248a6207
diff -r f7d8f9f361e3 -r ae588e75cfa4 main.cpp
--- a/main.cpp Thu Jul 14 23:05:09 2016 +0000
+++ b/main.cpp Fri Jul 15 14:59:27 2016 +0000
@@ -55,6 +55,15 @@
beacon_tc->TC_string[10] = (crc16 & 0x00FF);\
for(int i = 11; i<135;i++) beacon_tc->TC_string[i] = 0;\
tm_ptr = FCTN_CDMS_RLY_TMTC(beacon_tc);\
+ delete PL_TC;\
+ Base_tm *temp;\
+ temp = tm_ptr;\
+ while(tm_ptr!=NULL)\
+ {\
+ temp = temp->next_TM;\
+ delete tm_ptr;\
+ tm_ptr = temp;\
+ }\
}
#define OBSRS_TC(tm_ptr){\
Base_tc *beacon_tc = new Short_tc;\
@@ -85,7 +94,6 @@
gPC.puts("exit_adf\r\n");\
}
-
#define BAE_tc(tm_ptr) {\
Base_tc *bae_tc = new Long_tc;\
bae_tc->next_TC = NULL;\
@@ -100,7 +108,7 @@
bae_tc->TC_string[5] = 0;\
bae_tc->TC_string[6] = 0;\
bae_tc->TC_string[7] = 0;\
- bae_tc->TC_string[8] = 0;\
+ bae_tc->TC_string[8] = 0;\
uint16_t crc16 = crc16_gen(bae_tc->TC_string, 9);\
bae_tc->TC_string[9] = (uint8_t)(crc16 & 0xFF00)>>8;\
bae_tc->TC_string[10] = (uint8_t)(crc16 & 0x00FF);\
@@ -114,7 +122,7 @@
{\
temp = temp->next_TM;\
delete tm_ptr;\
- tm_ptr = temp;\
+ tm_ptr = temp;\
}\
}
@@ -178,7 +186,7 @@
gSCIENCE_THREAD->set_priority(osPriorityAboveNormal);
#if DEBUG
- gPC.puts("competed allocating threads\r\n");
+ gPC.puts("completed allocating threads\r\n");
#endif
