Skip to content

Commit

Permalink
i2c - fix return value description i2c_byte_write()
Browse files Browse the repository at this point in the history
  • Loading branch information
0xc0170 committed Apr 27, 2016
1 parent bda3d1e commit 3f612c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/mbed/hal/i2c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ int i2c_byte_read(i2c_t *obj, int last);
/** Write one byte.
* @param obj The i2c object
* @param data Byte to be written
* @return 1 if NAK was received, 0 if ACK was received, 2 for timeout.
* @return 0 if NAK was received, 1 if ACK was received, 2 for timeout.
*/
int i2c_byte_write(i2c_t *obj, int data);

Expand Down

0 comments on commit 3f612c5

Please sign in to comment.