aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjarke Vad <bjarke.vad90@gmail.com>2014-04-01 13:08:50 +0000
committerBjarke Vad <bjarke.vad90@gmail.com>2014-04-01 13:08:50 +0000
commitcd6e803d197feb6d7b51ef8a05d0750f1a4fc30b (patch)
tree2e2e91c98d3f7554404caec652709e102df1f58f
parent1e57edfc595eff47b420243f54dabd580244601a (diff)
downloadakka-serial-cd6e803d197feb6d7b51ef8a05d0750f1a4fc30b.tar.gz
akka-serial-cd6e803d197feb6d7b51ef8a05d0750f1a4fc30b.tar.bz2
akka-serial-cd6e803d197feb6d7b51ef8a05d0750f1a4fc30b.zip
Fixed issue #4
- Added CREAD flag to serial port setup - Tested on the ARM device "BeagleBone Black"
-rw-r--r--flow/src/main/native/posix/flow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/flow/src/main/native/posix/flow.c b/flow/src/main/native/posix/flow.c
index caf7b9b..e2ca103 100644
--- a/flow/src/main/native/posix/flow.c
+++ b/flow/src/main/native/posix/flow.c
@@ -58,6 +58,7 @@ int serial_open(
newtio.c_oflag &= ~OPOST;
newtio.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
newtio.c_cflag &= ~(CSIZE | PARENB);
+ newtio.c_clag |= CREAD
/* set speed */
speed_t bd;