Private
Public Access
2
0

i2c.c: fix typo in mraa_i2c_read_word_data

Fixes #45

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-11-26 07:52:40 +00:00
parent 8be861aa1f
commit 276b0a8920

View File

@@ -188,7 +188,7 @@ mraa_i2c_read_word_data(mraa_i2c_context dev, uint8_t command)
syslog(LOG_ERR, "i2c: Failed to write");
return 0;
}
return 0xFFFF & d.byte;
return 0xFFFF & d.word;
}
mraa_result_t