mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
Silly little bug in the custom baud rate code. Should fix #18.
This commit is contained in:
parent
da1207609f
commit
83ae470c78
@ -231,7 +231,7 @@ Serial::SerialImpl::reconfigurePort ()
|
|||||||
ser.flags &= ~ASYNC_SPD_MASK;
|
ser.flags &= ~ASYNC_SPD_MASK;
|
||||||
ser.flags |= ASYNC_SPD_CUST;
|
ser.flags |= ASYNC_SPD_CUST;
|
||||||
|
|
||||||
if (ioctl (fd_, TIOCSSERIAL, ser) < 0) {
|
if (ioctl (fd_, TIOCSSERIAL, &ser) < 0) {
|
||||||
THROW (IOException, errno);
|
THROW (IOException, errno);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user