I2C code testing

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by Siva ram

Revision:
131:8745e6041ebc
Parent:
130:d5b53088270b
--- a/i2c.h	Sat Feb 27 07:12:04 2016 +0000
+++ b/i2c.h	Sat Feb 27 10:22:40 2016 +0000
@@ -19,7 +19,7 @@
 void FCTN_I2C_WRITE_PL(char *data2,uint8_t tc_len2)
 {
     write_ack = master.write(addr_pl|0x00,data2,tc_len2);//address to be defined in payload
-    if(write_ack == 0)
+    if(write_ack == 1)
     {
         #if DEBUG
         gPC.printf("\n\r data not sent \n");