Skip to content

Commit 693f14e

Browse files
authored
Merge pull request #3827 from betzw/betzw_wb_i2c
Correct return values for `I2C::write(int, const char*, int, bool)`
2 parents e743a26 + c7453b2 commit 693f14e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/I2C.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ class I2C {
117117
* @param repeated Repeated start, true - do not send stop at end
118118
*
119119
* @returns
120-
* 0 or non-zero - written number of bytes,
121-
* negative - I2C_ERROR_XXX status
120+
* 0 on success (ack),
121+
* non-0 on failure (nack)
122122
*/
123123
int write(int address, const char *data, int length, bool repeated = false);
124124

0 commit comments

Comments
 (0)