pl ack in tmtc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by shubham c

Revision:
126:b7c024b5632d
Parent:
114:9fb55057b13f
diff -r a3b95a9c16ef -r b7c024b5632d Compression.h
--- a/Compression.h	Mon Feb 08 14:24:08 2016 +0000
+++ b/Compression.h	Wed Feb 10 17:01:26 2016 +0000
@@ -70,7 +70,9 @@
 void srp(unsigned char * head){
     //sci_time = FCTN_CDMS_RD_RTC();
     sci_time = 0;
+    #if DEBUG
     gPC.puts("enter srp");
+    #endif
     
     for (int i = 0; i < 52 ; i++){
         scp_bin[i] = 0;
@@ -305,11 +307,17 @@
                 frames[id][132] = temp_crc>>8;
                 frames[id][133] = temp_crc & 0xff;
                 if(test_cntr++ == 0){
+                    #if DEBUG
                     gPC.puts("frame start\r\n");
+                    #endif
                     for(int i = 0; i<134; i++){
+                        #if DEBUG
                         gPC.printf("%02X",frames[id][i]);
+                        #endif
                     }    
+                    #if DEBUG
                     gPC.puts("frame ends\r\n");
+                    #endif
                 }
                 exor(frames[id]);
                 convolution(frames[id]);
@@ -384,8 +392,9 @@
         if(scp_bin[i]>0)
             ezf = 0;
     }
-    
+    #if DEBUG
     gPC.puts("scp\r\n");
+    #endif
     
     pointer = scp;      debug_cntr = 0;     space = 8;
     unsigned char packet_pp = 1;    //where to get this packet present bit----------------------------------------------------------------------------------
@@ -525,8 +534,9 @@
             }
         }
     }//-----------------------------------------------------------------------------------------------------------------------------------------------------
-    
+    #if DEBUG
     gPC.puts("sci frame starts\r\n");
+    #endif
     
     //time to make scp frame
     id = 0;
@@ -593,5 +603,7 @@
                 frames[id][4] = (length-1) - j;
             }
     }
+    #if DEBUG
     gPC.puts("end srp");
+    #endif
 }//srp fucntion end bracket
\ No newline at end of file