fix i2cwritebuffer signature
This commit is contained in:
parent
a81a36e0ca
commit
3d52ed44e6
@ -381,7 +381,7 @@ namespace pins {
|
|||||||
* Write bytes to a 7-bit I2C `address`.
|
* Write bytes to a 7-bit I2C `address`.
|
||||||
*/
|
*/
|
||||||
//%
|
//%
|
||||||
int void i2cWriteBuffer(int address, Buffer buf, bool repeat = false)
|
int i2cWriteBuffer(int address, Buffer buf, bool repeat = false)
|
||||||
{
|
{
|
||||||
return uBit.i2c.write(address << 1, (char*)buf->data, buf->length, repeat);
|
return uBit.i2c.write(address << 1, (char*)buf->data, buf->length, repeat);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user