
Repository for CDMS code
Dependencies: SimpleDMA mbed-rtos mbed eeprom
Fork of COM_MNG_TMTC_SIMPLE by
Revision 27:f408ea06fcab, committed 2016-01-03
- Comitter:
- ee12b079
- Date:
- Sun Jan 03 10:14:42 2016 +0000
- Parent:
- 26:5fbb71ac7127
- Child:
- 28:cd3212fe5643
- Commit message:
- Data partially matching for power_tm
Changed in this revision
COM_SND_TM.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/COM_SND_TM.h Sat Jan 02 14:37:59 2016 +0000 +++ b/COM_SND_TM.h Sun Jan 03 10:14:42 2016 +0000 @@ -1,7 +1,7 @@ //void adf_not_SDcard(); #define S_FRAME_SIZE 48 -#define ISR 40 +#define ISR 10 #define TM_FRAME_SIZE 134 //in bytes #define T_FRAME_SIZE 159 #define EOS_SIZE 120 @@ -63,7 +63,7 @@ Base_tm*head = head_ptr; type0_no = 0; type1_no = 0; - while(head != NULL){ + while(head->next_TM != NULL){ switch( GETshort_or_long_tm(head->fields) ){ case 0: type0_no++; @@ -335,7 +335,15 @@ void head_pointer(Base_tm* ptr){ - head_ptr = ptr ; + Base_tm *genTM = ptr; + while(ptr->next_TM != NULL) + { + ptr=ptr->next_TM; + } + ptr->next_TM = new Long_tm; + ptr = ptr->next_TM; + ptr->next_TM = NULL; + head_ptr = genTM ; type1_frame_flag = true; type0_frame_flag = true; make_DataStream_f = true;