summaryrefslogtreecommitdiffstats
path: root/src/serial-device
diff options
context:
space:
mode:
Diffstat (limited to 'src/serial-device')
-rw-r--r--src/serial-device/main.vala2
-rw-r--r--src/serial-device/serial-device.vala2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/serial-device/main.vala b/src/serial-device/main.vala
index 70d50e2..d8dadf3 100644
--- a/src/serial-device/main.vala
+++ b/src/serial-device/main.vala
@@ -23,6 +23,8 @@ public static int main(string[] args) {
error("IOError: %s\n", e.message);
} catch(KeyFileError e) {
error("Config Error: %s\n", e.message);
+ } catch(DBusError e) {
+ error("DBus Error: %s\n", e.message);
}
Bus.own_name(
diff --git a/src/serial-device/serial-device.vala b/src/serial-device/serial-device.vala
index 549cd74..ae7480b 100644
--- a/src/serial-device/serial-device.vala
+++ b/src/serial-device/serial-device.vala
@@ -272,7 +272,7 @@ public class Device {
/**
* @param duration duration of the blink in 0.1 seconds
*/
- public void blink(uint duration) {
+ public void blink(uint duration) throws IOError, DBusError {
uint size = (byterate/1000) * duration;
var msg = new uint8[size];
Posix.memset(msg, 0xFF, msg.length);