11th feb i2c checking chaitu's code

Dependencies:   SimpleDMA eeprom mbed-rtos mbed

Fork of CDMS_CODE_FM_28JAN2017 by samp Srinivasan

Revision:
353:890c6b98392a
Parent:
352:022c513aee03
--- a/CDMS_HK.h	Mon Feb 06 16:36:46 2017 +0000
+++ b/CDMS_HK.h	Fri Feb 10 20:37:45 2017 +0000
@@ -202,6 +202,10 @@
                 crc = crc16_gen(BAE_HK_FRAME,132);               /*Adding CRC to TM frame*/
                 BAE_HK_FRAME[132] = crc >> 8;
                 BAE_HK_FRAME[133] = crc;
+                for(int i =0; i <134; i++)
+                {
+                    gPC.printf("%02x ",BAE_HK_FRAME[i]);
+                }
                 exor(BAE_HK_FRAME);
                 BAE_HEALTH.convolutionEncode(BAE_HK_FRAME , convoluted_BAE_HK);
                 BAE_HEALTH.convolutionEncode(BAE_HK_FRAME + 67, convoluted_BAE_HK + 135);
@@ -273,10 +277,14 @@
         beacon_array[132] = crc;
         beacon_array[133] = crc >> 8;
         bool y;
-        y = FCTN_I2C_WRITE((char *)beacon_array,134);
+        for(int i =0; i <134; i++)
+        {
+            gPC.printf("%02x ",beacon_array[i]);
+        }
+        y = FCTN_I2C_WRITE((char *)beacon_array,135);
         if(y == 0) {
             TIME_LATEST_I2C_BAE = FCTN_CDMS_RD_RTC() >> 7;
-            //gPC.printf("long Bcn sent\n\r");
+            gPC.printf("long Bcn sent\n\r");
         } else
             gPC.printf("long Bcn not sent\r\n");
         //gPC.printf("\rCompleted Beacon\n");