make terminal change immediate (otherwise sometimes causes params not being set under cygwin)

This commit is contained in:
john30
2020-02-02 09:00:53 +01:00
parent a82ef6631f
commit 3a77957e28
+1 -1
View File
@@ -495,7 +495,7 @@ result_t SerialDevice::open() {
tcflush(m_fd, TCIFLUSH);
// activate new settings of serial device
if (tcsetattr(m_fd, TCSAFLUSH, &newSettings)) {
if (tcsetattr(m_fd, TCSANOW, &newSettings)) {
close();
return RESULT_ERR_DEVICE;
}