pl ack in tmtc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by shubham c

Revision:
55:39e59903bc3a
Parent:
51:da85d84768e2
Child:
60:768056b558b2
Child:
63:4d13680673bc
diff -r 199040d70b17 -r 39e59903bc3a ThreadsAndFunctions.h
--- a/ThreadsAndFunctions.h	Thu Jan 14 13:26:40 2016 +0000
+++ b/ThreadsAndFunctions.h	Thu Jan 14 15:00:25 2016 +0000
@@ -103,6 +103,7 @@
         }
         else if( gFLAGS & NEW_TC_RECEIVED ){
             /*gPC.puts("NEW TC RECEIVED\r\n");*/
+            Thread::wait(7000);
             gFLAGS = gFLAGS & (~NEW_TC_RECEIVED);
             gFLAGS = gFLAGS | COM_MNG_TMTC_RUNNING_FLAG;
 
@@ -166,16 +167,16 @@
                         }
                     }
                     else{
-                        gPC.puts("tc list is not complete\r\n");
+                        //gPC.puts("tc list is not complete\r\n");
                         if(tempContinue & 0x01){
-                            gPC.puts("last packet bit not found\r\n");
+                            //gPC.puts("last packet bit not found\r\n");
                         }
                         if( tempContinue & 0x02 ){
-                            gPC.puts("missing psc found\r\n");
+                            //gPC.puts("missing psc found\r\n");
                         }
-                        gPC.printf("crc fail tc = %u\r\n", gTOTAL_CRC_FAIL_TC);
-                        gPC.printf("incorrect size tc = %u\r\n", gTOTAL_INCORRECT_SIZE_TC);
-                        gPC.printf("repeated psc = %u\r\n", gTOTAL_REPEATED_TC);
+                        //gPC.printf("crc fail tc = %u\r\n", gTOTAL_CRC_FAIL_TC);
+                        //gPC.printf("incorrect size tc = %u\r\n", gTOTAL_INCORRECT_SIZE_TC);
+                        //gPC.printf("repeated psc = %u\r\n", gTOTAL_REPEATED_TC);
                         Base_tc *test_tc = gHEAD_NODE_TCL;
                         while( test_tc != NULL ){
                             int length = 0;
@@ -186,12 +187,12 @@
                                 length = TC_LONG_SIZE;
                             }
                             for(int i = 0 ; i < length ; ++i ){
-                                gPC.printf("%x ", test_tc->TC_string[i]);
+                                //gPC.printf("%x ", test_tc->TC_string[i]);
                             }
-                            gPC.puts("\r\n");
+                            //gPC.puts("\r\n");
                             test_tc = test_tc->next_TC;
                         }
-                        gPC.puts("\r\n");
+                        //gPC.puts("\r\n");
                         COM_POWER_ON_TX;
                         // PENDING : POWER OFF TX
                         RX1M.attach(&rx_read, Serial::RxIrq);