Private
Public Access
2
0

i2c.hpp: overload read() function, this renames readByte

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-07-31 10:14:22 +02:00
parent 31c0eb33e5
commit 3925724464

View File

@@ -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);
} }
/** /**