pl ack in tmtc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by shubham c

Revision:
126:b7c024b5632d
Parent:
113:b8991d9e3b6c
--- a/OBSRS.h	Mon Feb 08 14:24:08 2016 +0000
+++ b/OBSRS.h	Wed Feb 10 17:01:26 2016 +0000
@@ -198,7 +198,6 @@
         }\
     }\
     else{\
-        gPC.printf("error in send_Ack_andcallsign()");\
     }\
 }
 #define send_S_frame {\
@@ -367,16 +366,13 @@
                             }
                         }
                         else if(T_frames_sent > T_frames_in_segment){
-                            gPC.printf("error in enable T_frame");
                         }
                     }
                 }
                 else if(T_frames_sent > T_frames_in_segment){
-                    gPC.printf("error in if(read_success)");        
                 }
             }
             else{
-                gPC.printf("error in enable T_frame");
             }
         }
         else if(adf_limit){
@@ -497,10 +493,14 @@
 
     if( GETshort_or_long_tc(tcp) == SHORT_TC_CODE ){
         short_TC = true;
+        #if DEBUG
         gPC.printf("it is short TC\r\n");
+        #endif
     }
     else{
+        #if DEBUG
         gPC.printf("it is long TC\r\n");
+        #endif
         short_TC = false;    
     }
     /*  reading SID from TC  */
@@ -520,10 +520,11 @@
             list_of_FSC[i] = tcp->TC_string[4+i];
         }
     }
-    
+    #if DEBUG
     gPC.printf("sid = %u \r\n",SID);
     gPC.printf("FSC = %u\r\n",FSC);
     gPC.puts("exit_sdcard");
+    #endif
 //    SID = 0x0;
 //    FSC = 10;
 //    no_of_frames = 2;