diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-05-16 06:26:42 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-05-16 06:26:42 +0200 |
commit | 75673821b1e3bf5c72b61a10bf9a6efa10188c4a (patch) | |
tree | a6b7bb1c8309fe46746305547d0d5b15093dd476 /serial.vala | |
parent | 6eece4cc060f0957e93d775244afc82491cecb69 (diff) | |
download | serial-barcode-scanner-75673821b1e3bf5c72b61a10bf9a6efa10188c4a.tar.bz2 |
add support for our status LED
Diffstat (limited to 'serial.vala')
-rw-r--r-- | serial.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serial.vala b/serial.vala index f6901f0..acdcf41 100644 --- a/serial.vala +++ b/serial.vala @@ -8,7 +8,7 @@ public class Serial { public Serial(string device, int rate, int bits, int stopbits) { Posix.speed_t baudrate = Posix.B9600; - fd = Posix.open(device, Posix.O_RDONLY /*| Posix.O_NONBLOCK*/); + fd = Posix.open(device, Posix.O_RDWR /*| Posix.O_NONBLOCK*/); if(fd < 0) { fd = -1; |