diff options
Diffstat (limited to 'i2c.c')
-rw-r--r-- | i2c.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,7 +10,7 @@ #define I2C_BUS "/dev/i2c-3" -int I2C_Write(gulong address, guchar value) { +void I2C_Write(gulong address, guchar value) { struct i2c_smbus_ioctl_data argswrite; @@ -21,7 +21,8 @@ int I2C_Write(gulong address, guchar value) { int device = open(I2C_BUS, O_RDWR); - if (device == -1) return device; + // FIXME? + if (device == -1) return; ioctl(device, I2C_SLAVE, address); ioctl(device, I2C_SMBUS, &argswrite); |