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
|
* @param repeated Repeated start, true - do not send stop at end
|
||||||
*
|
*
|
||||||
* @returns
|
* @returns
|
||||||
* 0 or non-zero - written number of bytes,
|
* 0 on success (ack),
|
||||||
* negative - I2C_ERROR_XXX status
|
* non-0 on failure (nack)
|
||||||
*/
|
*/
|
||||||
int write(int address, const char *data, int length, bool repeated = false);
|
int write(int address, const char *data, int length, bool repeated = false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue