pl ack in tmtc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by shubham c

Revision:
133:56d37aa8a011
Parent:
96:4ca92f9775e0
--- a/adf.h	Fri Feb 26 13:01:11 2016 +0000
+++ b/adf.h	Tue Mar 01 12:35:49 2016 +0000
@@ -214,16 +214,20 @@
         spi.write(0x18);\
         spi.write(0x20);\
         for(unsigned char i=0; i<112;i++){\
-            spi.write(buffer_112[i]);\
-            /*gPC.printf("0x%X,",spi.write(buffer_112[i]));*/\
+            if(bypass_adf)\
+                gPC.putc(buffer_112[i]);\
+            else\
+                spi.write(buffer_112[i]);\
         }\
     }\
     else{\
         spi.write(0x18);\
         spi.write(0x90);\
         for(unsigned char i=0; i<112;i++){\
-            spi.write(buffer_112[i]);\
-            /*gPC.printf("0x%X,",spi.write(buffer_112[i]));*/\
+            if(bypass_adf)\
+                gPC.putc(buffer_112[i]);\
+            else\
+                spi.write(buffer_112[i]);\
         }\
     }\
     gCS_ADF=1;\