summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Cremer <HolgerCremer@gmail.com>2017-12-29 19:00:01 +0100
committerHolger Cremer <HolgerCremer@gmail.com>2017-12-29 19:00:01 +0100
commitc53fc74bb87189aaf46d19ab6909f435a7bb6a27 (patch)
treee299acbfdc5843b7bf1e33aac7c41f6246adc89b /src
parente7fc5bf0b771f308af2046e258ce3d44c2154809 (diff)
downloadserial-barcode-scanner-c53fc74bb87189aaf46d19ab6909f435a7bb6a27.tar.bz2
adds docker
Diffstat (limited to 'src')
-rw-r--r--src/input-device/input-device.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input-device/input-device.vala b/src/input-device/input-device.vala
index 9e2680c..6988c6d 100644
--- a/src/input-device/input-device.vala
+++ b/src/input-device/input-device.vala
@@ -22,6 +22,10 @@ public class Device {
public signal void received_barcode(string barcode);
public Device(string device) {
+ if (device == "ignore") {
+ stdout.printf("Ignoring InputDevice!\n");
+ return;
+ }
try {
io_read = new IOChannel.file(device, "r");
buffer = "";