summaryrefslogtreecommitdiff
path: root/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'i2c.c')
-rw-r--r--i2c.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/i2c.c b/i2c.c
index fc9d48a..4c1499d 100644
--- a/i2c.c
+++ b/i2c.c
@@ -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);