i2c working with old hk

Dependencies:   mbed-rtos mbed

Fork of BAE_vr2_1_1 by green rosh

Revision:
11:cf6dac5fdc23
Parent:
10:ed6d3b8d1d56
Child:
12:ba2556c6b990
diff -r ed6d3b8d1d56 -r cf6dac5fdc23 slave.cpp
--- a/slave.cpp	Tue Dec 16 07:44:54 2014 +0000
+++ b/slave.cpp	Tue Dec 16 10:17:49 2014 +0000
@@ -62,12 +62,12 @@
         if(i2c_status == 0 && reset !=1)
         {
             
-            FUNC_I2C_WRITE2CDMS(data_receive);
+            FUNC_I2C_WRITE2CDMS(data_receive,13);
             i2c_data * i2c_data_r = i2c_data_receive.alloc();
             strcpy(i2c_data_r->data,data_receive);
             i2c_data_r->length = 13;
             i2c_data_receive.put(i2c_data_r);
-            printf("\n Data received from CDMS is %s\n\r",data_receive);
+            printf("\n Data received from CDMS is %s \n\r",data_receive);
             i2c_data_receive.free(i2c_data_r);                              // This has to be done from a differen thread
             
         }