summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-06-15 22:56:00 +0200
committerSebastian Reichel <sre@ring0.de>2012-06-15 22:56:00 +0200
commit8a08b9dce9cfc161494ddb07a1c979c7796780ff (patch)
treee86e8a83212c617da44e1b9aed480fe6b50374af /hw
parent626580d3a16d01f3ba5481d291c4c0c844ef4c46 (diff)
downloadmicrocopterd-8a08b9dce9cfc161494ddb07a1c979c7796780ff.tar.bz2
restructure code
it is now loading its components from plugins
Diffstat (limited to 'hw')
-rw-r--r--hw/device.vala2
-rw-r--r--hw/i2c-device.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/device.vala b/hw/device.vala
index adee58a..dad4439 100644
--- a/hw/device.vala
+++ b/hw/device.vala
@@ -13,5 +13,5 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-public class Device {
+public class Device : Object {
}
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);