Fix BufferedSerial visibility of private base class enum enumerators

Each enum enumerator needs to be exposed to be usable in the sub class.
pull/12382/head
Hugues Kamba 2020-02-06 15:29:32 +00:00
parent f73a62afbf
commit 8910c24fdc
1 changed files with 9 additions and 0 deletions

View File

@ -248,6 +248,11 @@ public:
// Expose private SerialBase::Parity as BufferedSerial::Parity
using SerialBase::Parity;
using SerialBase::None;
using SerialBase::Odd;
using SerialBase::Even;
using SerialBase::Forced1;
using SerialBase::Forced0;
/** Set the transmission format used by the serial port
*
@ -264,6 +269,10 @@ public:
// For now use the base enum - but in future we may have extra options
// such as XON/XOFF or manual GPIO RTSCTS.
using SerialBase::Flow;
using SerialBase::Disabled;
using SerialBase::RTS;
using SerialBase::CTS;
using SerialBase::RTSCTS;
/** Set the flow control type on the serial port
*