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.
Fork of I2cRtosDriver by
Diff: I2CDriver.cpp
- Revision:
- 10:e3d6c92ff222
- Parent:
- 9:65aae53a34de
- Child:
- 11:8c1d44595620
--- a/I2CDriver.cpp Sat May 04 16:47:56 2013 +0000
+++ b/I2CDriver.cpp Wed May 08 19:22:45 2013 +0000
@@ -79,10 +79,12 @@
tr.ret = i2cRtos_read(&i2c, tr.adr, tr.dta, tr.len, (tr.rep?0:1));
break;
case READ_MST_REG:
- //printf("Disco\n");
+ //printf("drv00\n");
tr.ret = i2cRtos_write(&i2c, tr.adr,(const char*)&(tr.reg), 1, 0);
+ //printf("drv01\n");
if(tr.ret)break; // error => bail out
tr.ret = i2cRtos_read(&i2c, tr.adr, tr.dta, tr.len, (tr.rep?0:1));
+ //printf("drv02\n");
break;
case READ_SLV:
tr.ret = i2cRtos_slave_read(&i2c, tr.dta, tr.len);
