i2c - fix return value description i2c_byte_write() (#1694)

Fixes #1670.
pull/1697/head
Martin Kojtal 2016-04-28 19:06:38 -05:00
parent 868ca35dfb
commit 884e1adeec
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ int i2c_byte_read(i2c_t *obj, int last);
/** Write one byte. /** Write one byte.
* @param obj The i2c object * @param obj The i2c object
* @param data Byte to be written * @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); int i2c_byte_write(i2c_t *obj, int data);