Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'native/org.eclipse.cdt.native.serial/jni/serial.c')
-rw-r--r--native/org.eclipse.cdt.native.serial/jni/serial.c2
1 files changed, 2 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 9ff8e264482..be6c549b1e8 100644
--- a/native/org.eclipse.cdt.native.serial/jni/serial.c
+++ b/native/org.eclipse.cdt.native.serial/jni/serial.c
@@ -10,6 +10,7 @@
*
* Contributors:
* QNX Software Systems - initial API and implementation
+ * STMicroelectronics
*******************************************************************************/
#ifdef __APPLE__
#include <sys/types.h>
@@ -194,6 +195,7 @@ JNIEXPORT jlong JNICALL FUNC(open0)(JNIEnv *env, jobject jobj, jstring portName,
switch (parity) {
case 0: // None
dcb.fParity = FALSE;
+ dcb.Parity = NOPARITY;
break;
case 1: // Even
dcb.fParity = TRUE;

Back to the top