i2c.hpp: overload read() function, this renames readByte
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -83,9 +83,9 @@ class I2c {
|
|||||||
/**
|
/**
|
||||||
* Read exactly one byte from the bus
|
* Read exactly one byte from the bus
|
||||||
*
|
*
|
||||||
* @return Char read from the bus
|
* @return char read from the bus
|
||||||
*/
|
*/
|
||||||
unsigned char readByte() {
|
unsigned char read() {
|
||||||
return (unsigned char) mraa_i2c_read_byte(m_i2c);
|
return (unsigned char) mraa_i2c_read_byte(m_i2c);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user