aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flow-binaries/linux/amd64/libflow.so.2.1bin0 -> 17830 bytes
-rw-r--r--flow-native/unix/src/flow.c9
-rw-r--r--project/Build.scala2
3 files changed, 6 insertions, 5 deletions
diff --git a/flow-binaries/linux/amd64/libflow.so.2.1 b/flow-binaries/linux/amd64/libflow.so.2.1
new file mode 100644
index 0000000..509e468
--- /dev/null
+++ b/flow-binaries/linux/amd64/libflow.so.2.1
Binary files differ
diff --git a/flow-native/unix/src/flow.c b/flow-native/unix/src/flow.c
index 07e1c9f..1c127b2 100644
--- a/flow-native/unix/src/flow.c
+++ b/flow-native/unix/src/flow.c
@@ -84,10 +84,11 @@ int serial_open(
/* configure new port settings */
struct termios newtio;
- newtio.c_cflag = 0;
- newtio.c_oflag = 0;
- newtio.c_iflag = 0;
- newtio.c_lflag = 0;
+ /* following calls correspond to makeraw() */
+ newtio.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
+ newtio.c_oflag &= ~OPOST;
+ newtio.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
+ newtio.c_cflag &= ~(CSIZE | PARENB);
/* set speed */
speed_t bd;
diff --git a/project/Build.scala b/project/Build.scala
index c4b301f..b7e0da1 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -106,7 +106,7 @@ val binaries: Seq[(File, File)] = getLatestBinaries(binDir, BinaryMajorVersion)
//--- native unix-like settings ----------------------------------------
- val UnixBinaryMinorVersion = 0
+ val UnixBinaryMinorVersion = 1
lazy val unixNativeSettings: Seq[Setting[_]] = commonNativeSettings ++ Seq(
flags in Native := Seq("-fPIC", "-O2")