wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.13k stars 1.04k forks source link

Refine setTimeout by const reference #211

Closed shuai132 closed 4 years ago

shuai132 commented 5 years ago

for support rvalue of timeout, otherwise we will got compile error, eg: serial_->setTimeout(serial::Timeout::simpleTimeout(1000));

g5pw commented 4 years ago

I guess this is a duplicate of #102 ?

shuai132 commented 4 years ago

Right! Thanks for letting me know!