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.
Diff: I2CDriver/I2CDriver.cpp
- Revision:
- 5:e4ed6c5baf89
- Parent:
- 4:a091b8f8216d
--- a/I2CDriver/I2CDriver.cpp Sun May 04 20:41:10 2014 +0000
+++ b/I2CDriver/I2CDriver.cpp Thu May 08 18:59:52 2014 +0000
@@ -29,7 +29,9 @@
{
if(receive() == I2CDriver::WriteAddressed) {
slave.read(databuffer, SIZE);
- ledc->setData(databuffer);
+ unsigned char databfr[512];
+ for(int i =0; i < 512; i++) databfr[i] = databuffer[i];
+ ledc->setData(databfr);
}
//printf("Gepollt!!\n\r");
}