fix i2cwritebuffer signature

This commit is contained in:
Peli de Halleux 2018-10-22 13:32:46 -07:00
parent a81a36e0ca
commit 3d52ed44e6
2 changed files with 2 additions and 2 deletions

View File

@ -513,4 +513,4 @@
"serial.writeValue": "Write a name:value pair as a line to the serial port.",
"serial.writeValue|param|name": "name of the value stream, eg: x",
"serial.writeValue|param|value": "to write"
}
}

View File

@ -381,7 +381,7 @@ namespace pins {
* 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);
}