mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Merge e8d882335bdd1c2009da276b1cde6585e3c5ec2f into 69e0372cf0d3796e84ce9a09aff1d74496f68720
This commit is contained in:
commit
1fe4acdab9
@ -951,9 +951,9 @@ while (is_open_ == true) {
|
|||||||
#else
|
#else
|
||||||
int command = (TIOCM_CD|TIOCM_DSR|TIOCM_RI|TIOCM_CTS);
|
int command = (TIOCM_CD|TIOCM_DSR|TIOCM_RI|TIOCM_CTS);
|
||||||
|
|
||||||
if (-1 == ioctl (fd_, TIOCMIWAIT, &command)) {
|
if (-1 == ioctl (fd_, TIOCMIWAIT, command)) {
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
ss << "waitForDSR failed on a call to ioctl(TIOCMIWAIT): "
|
ss << "waitForChange failed on a call to ioctl(TIOCMIWAIT): "
|
||||||
<< errno << " " << strerror(errno);
|
<< errno << " " << strerror(errno);
|
||||||
throw(SerialException(ss.str().c_str()));
|
throw(SerialException(ss.str().c_str()));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user