1
0
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:
Richard Hulme 2022-11-20 07:02:39 -08:00 committed by GitHub
commit 1fe4acdab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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