Skip to content

Commit e8d8823

Browse files
committed
Fix Unix ioctl call and exception text in waitForChange
1 parent cbcca7c commit e8d8823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/impl/unix.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,9 +933,9 @@ while (is_open_ == true) {
933933
#else
934934
int command = (TIOCM_CD|TIOCM_DSR|TIOCM_RI|TIOCM_CTS);
935935

936-
if (-1 == ioctl (fd_, TIOCMIWAIT, &command)) {
936+
if (-1 == ioctl (fd_, TIOCMIWAIT, command)) {
937937
stringstream ss;
938-
ss << "waitForDSR failed on a call to ioctl(TIOCMIWAIT): "
938+
ss << "waitForChange failed on a call to ioctl(TIOCMIWAIT): "
939939
<< errno << " " << strerror(errno);
940940
throw(SerialException(ss.str().c_str()));
941941
}

0 commit comments

Comments
 (0)