1
0
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:
Richard Hulme 2020-06-08 20:41:53 +02:00
parent cbcca7c837
commit e8d882335b

View File

@ -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()));
}