diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-13 09:49:43 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-13 09:49:43 -0400 |
commit | cf3682e33fbf24f8c6adf3b7f88c15f837f23190 (patch) | |
tree | e91d59203d1756a18f5ce1633e47b48d7a426506 | |
parent | 08819acf094883c069e7c3088d5da6a9c24c45b8 (diff) |
Fixed i2c error return value
-rw-r--r-- | i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ guchar I2C_Read(gulong address) { int device = open(I2C_BUS, O_RDWR); - if (device == -1) return device; + if (device == -1) return 0; ioctl(device, I2C_SLAVE, address); ioctl(device, I2C_SMBUS, &argsread); |