Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: i2c.h
- Revision:
- 171:31bdf83591a1
- Parent:
- 170:286ef9dad36a
- Child:
- 184:d75cea6f5d49
--- a/i2c.h Tue Apr 19 23:00:31 2016 +0000
+++ b/i2c.h Wed Apr 20 12:58:58 2016 +0000
@@ -17,6 +17,8 @@
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)
+ {gPC.printf("\n\rData sent to PL \n");}
if(write_ack == 1)
{
gPC.printf("\n\rdata not sent\n");
