Outdated documentation for TTYPort
Teufelchen1 opened this issue · 2 comments
Teufelchen1 commented
Hello!
I got confused by this comment and spend unnecessary time figuring out what I am doing wrong.
My suggestion is to change the documentation to:
However, this struct should not be instantiated directly by using TTYPort::open(),
instead use the cross-platform serialport::new(). Example:
`let mut port = serialport::new("/dev/ttyS0", 115200).open().expect("Error");`
serialport-rs/src/posix/tty.rs
Lines 36 to 39 in 09bfb98
sirhcel commented
Good catch. Thank you! Would you mind opening a PR to iron this out?
Teufelchen1 commented
Can do!