mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3827 from betzw/betzw_wb_i2c
Correct return values for `I2C::write(int, const char*, int, bool)`pull/3939/head
commit
693f14ee97
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue