Closed mduitz closed 11 years ago
i2c.cc In Handle ReadByte(const Arguments& args) { ... int8_t res = i2c_smbus_read_byte(fd);
if (i2c_smbus_read_byte(fd) == -1) {
should be
int8_t res = i2c_smbus_read_byte(fd);
if (res == -1) {
Whoops! Thanks, just fixed and pushed.
i2c.cc In Handle ReadByte(const Arguments& args) {
...
int8_t res = i2c_smbus_read_byte(fd);
if (i2c_smbus_read_byte(fd) == -1) {
should be
int8_t res = i2c_smbus_read_byte(fd);
if (res == -1) {