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:
- 170:286ef9dad36a
- Parent:
- 162:48fda0b8d573
- Child:
- 171:31bdf83591a1
--- a/i2c.h Mon Apr 18 12:18:53 2016 +0000
+++ b/i2c.h Tue Apr 19 23:00:31 2016 +0000
@@ -19,7 +19,7 @@
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");
+ gPC.printf("\n\rdata not sent\n");
}
}
@@ -31,10 +31,10 @@
//t_read.stop();
if(read_ack == 0)
- printf("\n\rData received from BAE %s \n",data);
+ gPC.printf("\n\rData received from BAE \n");
if (read_ack == 1)
{
- printf("\n \r data not received \n");
+ gPC.printf("\n \r data not received \n");
}
//if(read_ack == 1)
//pc.printf("\n \r data not received \n");
