diff options
author | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 20:12:42 -0500 |
---|---|---|
committer | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 20:12:42 -0500 |
commit | 52b66ee4a84620966636a8fb87c45437a4a04b04 (patch) | |
tree | b618739c95459df0eaf05f092039b2f15af1743a /i2c.c | |
parent | 08819acf094883c069e7c3088d5da6a9c24c45b8 (diff) |
many small fixes
Diffstat (limited to 'i2c.c')
-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); |