From cd6e803d197feb6d7b51ef8a05d0750f1a4fc30b Mon Sep 17 00:00:00 2001 From: Bjarke Vad Date: Tue, 1 Apr 2014 13:08:50 +0000 Subject: Fixed issue #4 - Added CREAD flag to serial port setup - Tested on the ARM device "BeagleBone Black" --- flow/src/main/native/posix/flow.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3 From 5badb313795327f8f019c59d17fffd153087fc09 Mon Sep 17 00:00:00 2001 From: Bjarke Vad Andersen Date: Tue, 1 Apr 2014 15:44:06 +0000 Subject: c_clag -> c_cflag --- flow/src/main/native/posix/flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/src/main/native/posix/flow.c b/flow/src/main/native/posix/flow.c index e2ca103..e60c4d1 100644 --- a/flow/src/main/native/posix/flow.c +++ b/flow/src/main/native/posix/flow.c @@ -58,7 +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 + newtio.c_cflag |= CREAD /* set speed */ speed_t bd; -- cgit v1.2.3