pl ack in tmtc
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of COM_MNG_TMTC_SIMPLE_pl123 by
Diff: i2c.h
- Revision:
- 140:4feeb1163bb6
- Parent:
- 139:17353d6311ce
--- a/i2c.h Wed Mar 30 14:04:48 2016 +0000 +++ b/i2c.h Sat Apr 02 04:17:20 2016 +0000 @@ -15,17 +15,15 @@ uint8_t PL_TM_SIZE;//size of data to bev read from i2c -void FCTN_I2C_WRITE_PL(char *data2,uint8_t tc_len2) +int 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 == 1) { printf("\n\rdata not sent\n"); - } - else - { - - } + } + return write_ack; + } void FCTN_I2C_READ_PL(char *data,int length) {