Skip to content

Commit

Permalink
Add IXANY flag to default termios options
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Dec 1, 2022
1 parent b56ac40 commit 86c592f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/c/Posix/SerialPort_Posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ JNIEXPORT jboolean JNICALL Java_com_fazecast_jSerialComm_SerialPort_configPort(J
tcgetattr(port->handle, &options);
options.c_cc[VSTART] = (unsigned char)xonStartChar;
options.c_cc[VSTOP] = (unsigned char)xoffStopChar;
options.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | INPCK | IGNPAR | IGNCR | ICRNL | IXON | IXOFF);
options.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | INPCK | IGNPAR | IGNCR | ICRNL | IXON | IXOFF | IXANY);
options.c_oflag &= ~OPOST;
options.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
options.c_cflag &= ~(CSIZE | PARENB | CMSPAR | PARODD | CSTOPB | CRTSCTS);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/fazecast/jSerialComm/SerialPort.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class SerialPort
static final public int LISTENING_EVENT_PORT_DISCONNECTED = 0x10000000;

// Static initializer loads correct native library for this machine
static private final String versionString = "2.9.3-beta2";
static private final String versionString = "2.9.3";
static private final String tmpdirAppIdProperty = "fazecast.jSerialComm.appid";
static private final List<Thread> shutdownHooks = new ArrayList<Thread>();
static private boolean isWindows = false, isAndroid = false;
Expand Down

0 comments on commit 86c592f

Please sign in to comment.