Closed Polprzewodnikowy closed 4 months ago
Oops, this is definitely a copy-pasta bug. Thanks for reporting it!
Do you want to send a PR to fix it, or shall I?
I've made PR here: https://github.com/de-vri-es/serial2-rs/pull/28
Released with v0.2.20
. Thanks for reporting and fixing the issue!
Code in question is here: https://github.com/de-vri-es/serial2-rs/blob/main/src/sys/unix/mod.rs#L222-L224
Looks like a copy-paste bug from
read
function, but I'd like to confirm if write functions should useself.write_timeout_ms
value.