To fix the hang problem

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Files at this revision

API Documentation at this revision

Comitter:
ee12b079
Date:
Thu Dec 08 16:58:14 2016 +0000
Parent:
319:c11a52b91d25
Commit message:
1 segment per session enabled

Changed in this revision

COM_MNG_TMTC.h Show annotated file Show diff for this revision Revisions of this file
OBSRS.h Show annotated file Show diff for this revision Revisions of this file
--- a/COM_MNG_TMTC.h	Thu Dec 08 15:17:24 2016 +0000
+++ b/COM_MNG_TMTC.h	Thu Dec 08 16:58:14 2016 +0000
@@ -1434,8 +1434,8 @@
                             tm_ptr = tm_ptr->next_TM;\
                         }\
                         /*Send only call sign, ACK_L1 to GS*/\
-                        snd_tm.head_pointer(tm_ptr_head);\
-                        transmit_adf;\
+                        /*snd_tm.head_pointer(tm_ptr_head);*/\
+                        /*transmit_adf;*/\
                         /*DELETE THE TM AFTER USE*/\
                         tm_ptr = tm_ptr_head;\
                         int overflowCountExecute = 0;\
@@ -1563,9 +1563,9 @@
                                 tm_ptr = tm_ptr->next_TM;\
                             }\
                             /*SEND call sign, ACK_L1, NON OBSRS TM TO GS*/\
-                            snd_tm.head_pointer(tm_ptr_head);\
+                            /*snd_tm.head_pointer(tm_ptr_head);*/\
                             gPC.puts("enter_adf\r\n");\
-                            transmit_adf;\
+                            /*transmit_adf;*/\
                             gPC.puts("exit_adf\r\n");\
                             /*DELETE THE TM AFTER USE*/\
                             tm_ptr = tm_ptr_head;\
--- a/OBSRS.h	Thu Dec 08 15:17:24 2016 +0000
+++ b/OBSRS.h	Thu Dec 08 16:58:14 2016 +0000
@@ -48,7 +48,8 @@
 uint16_t counter_buffer_112=0, counter_EoS=0,T_frames_sent=0;
 uint16_t counter_interleavedata=0;
 uint16_t counter_buffer_512=0;
-uint16_t max_segments  =  65415/(48+T_frames_in_segment*159);
+//Avoiding multiple-segment for QM, to b changed later
+uint16_t max_segments  =  1;//65415/(48+T_frames_in_segment*159);
 uint16_t ack_code = 0xA0;
 uint8_t segments_sent = 0;
 uint8_t counter_SCH40 = 0;