From 3925724464f626c89adfd7ea9e58ce0e607357e3 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Thu, 31 Jul 2014 10:14:22 +0200 Subject: [PATCH] i2c.hpp: overload read() function, this renames readByte Signed-off-by: Brendan Le Foll --- api/mraa/i2c.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/mraa/i2c.hpp b/api/mraa/i2c.hpp index e67dd95..8a49be3 100644 --- a/api/mraa/i2c.hpp +++ b/api/mraa/i2c.hpp @@ -83,9 +83,9 @@ class I2c { /** * 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); } /**