We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60d6a17 commit f268475Copy full SHA for f268475
1 file changed
src/serial.cpp
@@ -375,11 +375,8 @@ DataLength Serial::getDataLength() const {
375
}
376
377
std::chrono::milliseconds Serial::getReadTimeout() const {
378
- if (canonical_mode_ == CanonicalMode::DISABLE) {
379
- this->getTermios2();
380
- return std::chrono::milliseconds(options_.c_cc[VTIME] * 100);
381
- }
382
- return read_timeout_ms_;
+ this->getTermios2();
+ return std::chrono::milliseconds(options_.c_cc[VTIME] * 100);
383
384
385
uint16_t Serial::getMinNumberCharRead() const {
0 commit comments