make terminal change immediate (otherwise sometimes causes params not being set under cygwin)
This commit is contained in:
@@ -495,7 +495,7 @@ result_t SerialDevice::open() {
|
|||||||
tcflush(m_fd, TCIFLUSH);
|
tcflush(m_fd, TCIFLUSH);
|
||||||
|
|
||||||
// activate new settings of serial device
|
// activate new settings of serial device
|
||||||
if (tcsetattr(m_fd, TCSAFLUSH, &newSettings)) {
|
if (tcsetattr(m_fd, TCSANOW, &newSettings)) {
|
||||||
close();
|
close();
|
||||||
return RESULT_ERR_DEVICE;
|
return RESULT_ERR_DEVICE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user