Skip to content

Commit

Permalink
Fix Unix ioctl call and exception text in waitForChange
Browse files Browse the repository at this point in the history
  • Loading branch information
rhulme committed Jun 8, 2020
1 parent cbcca7c commit e8d8823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/impl/unix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down

0 comments on commit e8d8823

Please sign in to comment.