Private
Public Access
2
0

i2c: fix return value doc for _read_bytes_data

Closes #218

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-06-09 08:25:36 +01:00
parent ae9130ee8f
commit 1c4be07aac
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ uint16_t mraa_i2c_read_word_data(mraa_i2c_context dev, const uint8_t command);
* @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);

View File

@@ -154,7 +154,7 @@ class I2c
* @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)