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