From 83ae470c788193add9e86065fdc8319b8cb27235 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Mon, 18 Jun 2012 19:04:35 -0500 Subject: [PATCH] Silly little bug in the custom baud rate code. Should fix #18. --- src/impl/unix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/impl/unix.cc b/src/impl/unix.cc index 9e086f7..c43e9ba 100755 --- a/src/impl/unix.cc +++ b/src/impl/unix.cc @@ -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