mirror of
https://github.com/boostorg/asio.git
synced 2026-02-25 14:32:08 +00:00
Include CREAD and CLOCAL in the default flags for serial ports.
[SVN r48039]
This commit is contained in:
@@ -120,6 +120,7 @@ public:
|
||||
ios.c_cflag |= CS8;
|
||||
#endif
|
||||
ios.c_iflag |= IGNPAR;
|
||||
ios.c_cflag |= CREAD | CLOCAL;
|
||||
descriptor_ops::clear_error(ec);
|
||||
s = descriptor_ops::error_wrapper(::tcsetattr(fd, TCSANOW, &ios), ec);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user