diff --git a/libs/core/_locales/core-jsdoc-strings.json b/libs/core/_locales/core-jsdoc-strings.json index 84bb93b3..a5b623fb 100644 --- a/libs/core/_locales/core-jsdoc-strings.json +++ b/libs/core/_locales/core-jsdoc-strings.json @@ -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" -} +} \ No newline at end of file diff --git a/libs/core/pins.cpp b/libs/core/pins.cpp index ad7fea9a..4e2a2e81 100644 --- a/libs/core/pins.cpp +++ b/libs/core/pins.cpp @@ -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); }