Include CREAD and CLOCAL in the default flags for serial ports.
This commit is contained in:
parent
e60edd70c7
commit
8c4141dd08
@ -119,6 +119,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user