From de704369db4ca0622927ccb70d600be45143aa30 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Wed, 2 Jul 2014 15:17:02 -0700 Subject: [PATCH] fixup removal of read_cache_ --- src/serial.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/serial.cc b/src/serial.cc index fab3578..7b2d2a4 100755 --- a/src/serial.cc +++ b/src/serial.cc @@ -66,7 +66,7 @@ private: Serial::Serial (const string &port, uint32_t baudrate, serial::Timeout timeout, bytesize_t bytesize, parity_t parity, stopbits_t stopbits, flowcontrol_t flowcontrol) - : read_cache_(""), pimpl_(new SerialImpl (port, baudrate, bytesize, parity, + : pimpl_(new SerialImpl (port, baudrate, bytesize, parity, stopbits, flowcontrol)) { pimpl_->setTimeout(timeout); @@ -354,7 +354,6 @@ void Serial::flush () ScopedReadLock rlock(this->pimpl_); ScopedWriteLock wlock(this->pimpl_); pimpl_->flush (); - read_cache_.clear (); } void Serial::flushInput () @@ -367,7 +366,6 @@ void Serial::flushOutput () { ScopedWriteLock lock(this->pimpl_); pimpl_->flushOutput (); - read_cache_.clear (); } void Serial::sendBreak (int duration)