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:
@@ -188,7 +188,7 @@ mraa_i2c_read_word_data(mraa_i2c_context dev, uint8_t command)
|
|||||||
syslog(LOG_ERR, "i2c: Failed to write");
|
syslog(LOG_ERR, "i2c: Failed to write");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return 0xFFFF & d.byte;
|
return 0xFFFF & d.word;
|
||||||
}
|
}
|
||||||
|
|
||||||
mraa_result_t
|
mraa_result_t
|
||||||
|
|||||||
Reference in New Issue
Block a user