Merge pull request #3827 from betzw/betzw_wb_i2c

Correct return values for `I2C::write(int, const char*, int, bool)`
pull/3939/head
Anna Bridge 2017-03-14 14:33:42 +00:00 committed by GitHub
commit 693f14ee97
1 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ public:
* @param repeated Repeated start, true - do not send stop at end
*
* @returns
* 0 or non-zero - written number of bytes,
* negative - I2C_ERROR_XXX status
* 0 on success (ack),
* non-0 on failure (nack)
*/
int write(int address, const char *data, int length, bool repeated = false);