We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd4a89 commit 6f8fc11Copy full SHA for 6f8fc11
src/impl/impl_unix.cpp
@@ -840,9 +840,9 @@ bool Serial::SerialImpl::waitForChange() const {
840
#else
841
int command = (TIOCM_CD | TIOCM_DSR | TIOCM_RI | TIOCM_CTS);
842
843
- if (-1 == ioctl(fd_, TIOCMIWAIT, &command)) {
+ if (-1 == ioctl(fd_, TIOCMIWAIT, command)) {
844
std::stringstream ss;
845
- ss << "waitForDSR failed on a call to ioctl(TIOCMIWAIT): " << errno << " " << strerror(errno);
+ ss << "waitForChange failed on a call to ioctl(TIOCMIWAIT): " << errno << " " << strerror(errno);
846
throw (SerialException(ss.str().c_str()));
847
}
848
return true;
0 commit comments