pl ack in tmtc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by shubham c

Revision:
16:538de1b20b3a
Parent:
15:1c1ca992b43b
Child:
17:6eb9387f1fb8
Child:
19:27e5f2edaf26
Child:
21:d7f6c28707d8
Child:
24:55cd06f4a534
--- a/COM_MNG_TMTC.h	Thu Dec 31 13:14:59 2015 +0000
+++ b/COM_MNG_TMTC.h	Thu Dec 31 18:35:59 2015 +0000
@@ -157,7 +157,7 @@
     tempReturn = tempReturn + 0x01;\
     Base_tc *tcp = gHEAD_NODE_TCL;\
     while(tcp != NULL){\
-        if(GETpacket_seq_count(tcp) == (gTOTAL_VALID_TC + PSC_START_VALUE - 1)){\
+        if(GETpacket_seq_count(tcp) == (gTOTAL_VALID_TC - 1)){\
             if( ( (tcp->TC_string[1]) & 0x20 ) == 0x20 ){\
                 tempReturn = tempReturn - 0x01;\
             }\
@@ -633,7 +633,8 @@
 
 #define EXECUTE_TC {\
     gMASTER_STATE = TCL_STATE_EXECUTING;\
-    for(uint8_t execute_psc = PSC_START_VALUE ; execute_psc < PSC_START_VALUE ; ++execute_psc ){\
+    for(uint8_t execute_psc = PSC_START_VALUE ; execute_psc < gTOTAL_VALID_TC ; ++execute_psc ){\
+        gPC.printf("executing normal %u\r\n", execute_psc);\
         /*gLEDG = !gLEDG;*/\
         /*gLEDR = !gLEDR;*/\
         Base_tc* current_TC = gHEAD_NODE_TCL;\