Closes #218
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
* @param command The register
* @param data pointer to the byte array to read data in to
* @param length max number of bytes to read
- * @return The length in bytes passed to the function or 0
+ * @return The length in bytes passed to the function or -1
*/
int mraa_i2c_read_bytes_data(mraa_i2c_context dev, uint8_t command, uint8_t* data, int length);
* @param reg Register to read from
* @param data pointer to the byte array to read data in to
* @param length max number of bytes to read
- * @return length passed to the function or 0
+ * @return length passed to the function or -1
*/
int
readBytesReg(uint8_t reg, uint8_t* data, int length)