mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +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_CUST;
|
||||
|
||||
if (ioctl (fd_, TIOCSSERIAL, ser) < 0) {
|
||||
if (ioctl (fd_, TIOCSSERIAL, &ser) < 0) {
|
||||
THROW (IOException, errno);
|
||||
}
|
||||
#else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user