Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakhalid8lf2019-09-27 16:46:31 +0000
committerJonah Graham2019-11-04 12:19:51 +0000
commit6fa96ca549bce8e589a31ff9b6ad83ffb5f06812 (patch)
tree186da3602a3522297cf7e70a37fb0ee585a7a591
parent29369a555c9baf53d1273db2ba6742f577262346 (diff)
downloadorg.eclipse.cdt-6fa96ca549bce8e589a31ff9b6ad83ffb5f06812.tar.gz
org.eclipse.cdt-6fa96ca549bce8e589a31ff9b6ad83ffb5f06812.tar.xz
org.eclipse.cdt-6fa96ca549bce8e589a31ff9b6ad83ffb5f06812.zip
Bug 551458 Fixed distortion produced by serial terminal in Ubuntu
Revert serial.dll as the change does not impact windows Change-Id: I968a3f40e8222a46d077aa5c6fde0a19740bd0a9 Signed-off-by: akhalid8lf <abdullah.dev0@gmail.com>
-rw-r--r--native/org.eclipse.cdt.native.serial/jni/serial.c3
-rwxr-xr-xnative/org.eclipse.cdt.native.serial/os/linux/x86_64/libserial.sobin13192 -> 13192 bytes
-rwxr-xr-xnative/org.eclipse.cdt.native.serial/os/macosx/x86_64/libserial.jnilibbin13476 -> 13476 bytes
-rwxr-xr-xnative/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dllbin380597 -> 380597 bytes
4 files changed, 3 insertions, 0 deletions
diff --git a/native/org.eclipse.cdt.native.serial/jni/serial.c b/native/org.eclipse.cdt.native.serial/jni/serial.c
index 216169c041d..95d3b57f379 100644
--- a/native/org.eclipse.cdt.native.serial/jni/serial.c
+++ b/native/org.eclipse.cdt.native.serial/jni/serial.c
@@ -157,6 +157,9 @@ JNIEXPORT jlong JNICALL FUNC(open0)(JNIEnv *env, jobject jobj, jstring portName,
// ignore parity
options.c_iflag |= IGNPAR;
+
+ // turn off those bits in the input flag that fiddle with CR and NL
+ options.c_iflag &= ~(ICRNL | INLCR | IGNCR);
options.c_cc[VMIN] = 0; // min chars to read
options.c_cc[VTIME] = 2; // 10ths second timeout
diff --git a/native/org.eclipse.cdt.native.serial/os/linux/x86_64/libserial.so b/native/org.eclipse.cdt.native.serial/os/linux/x86_64/libserial.so
index 274eab0d844..3abd110e911 100755
--- a/native/org.eclipse.cdt.native.serial/os/linux/x86_64/libserial.so
+++ b/native/org.eclipse.cdt.native.serial/os/linux/x86_64/libserial.so
Binary files differ
diff --git a/native/org.eclipse.cdt.native.serial/os/macosx/x86_64/libserial.jnilib b/native/org.eclipse.cdt.native.serial/os/macosx/x86_64/libserial.jnilib
index 26ce721366e..164c975250a 100755
--- a/native/org.eclipse.cdt.native.serial/os/macosx/x86_64/libserial.jnilib
+++ b/native/org.eclipse.cdt.native.serial/os/macosx/x86_64/libserial.jnilib
Binary files differ
diff --git a/native/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dll b/native/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dll
index d33554a6afd..fa6b4ce6c0e 100755
--- a/native/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dll
+++ b/native/org.eclipse.cdt.native.serial/os/win32/x86_64/serial.dll
Binary files differ

Back to the top