diff options
Diffstat (limited to 'hw/i2c-device.vala')
-rw-r--r-- | hw/i2c-device.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c-device.vala b/hw/i2c-device.vala index 21193f2..b6d285c 100644 --- a/hw/i2c-device.vala +++ b/hw/i2c-device.vala @@ -21,7 +21,7 @@ public errordomain I2CError { public class I2CDevice : Device { private int fd; - public I2CDevice(uint8 dev, uint8 addr) throws I2CError { + public void setup(uint8 dev, uint8 addr) throws I2CError { string file = "/dev/i2c-%u".printf(dev); fd = Posix.open(file, Posix.O_RDWR); |