From 276b0a8920a5d033d1bacda1053346e4351dcdbb Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Wed, 26 Nov 2014 07:52:40 +0000 Subject: [PATCH] i2c.c: fix typo in mraa_i2c_read_word_data Fixes #45 Signed-off-by: Brendan Le Foll --- src/i2c/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i2c/i2c.c b/src/i2c/i2c.c index ba3d2f9..caa8130 100644 --- a/src/i2c/i2c.c +++ b/src/i2c/i2c.c @@ -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