summaryrefslogtreecommitdiffstats
path: root/serial.vala
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-05-16 06:26:42 +0200
committerSebastian Reichel <sre@ring0.de>2012-05-16 06:26:42 +0200
commit75673821b1e3bf5c72b61a10bf9a6efa10188c4a (patch)
treea6b7bb1c8309fe46746305547d0d5b15093dd476 /serial.vala
parent6eece4cc060f0957e93d775244afc82491cecb69 (diff)
downloadserial-barcode-scanner-75673821b1e3bf5c72b61a10bf9a6efa10188c4a.tar.bz2
add support for our status LED
Diffstat (limited to 'serial.vala')
-rw-r--r--serial.vala2
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;