Merge pull request #12382 from hugueskamba/hk-fix-bufferedserial-exposed-enums

Fix BufferedSerial visibility of private base class enum enumerators
pull/12405/head
Martin Kojtal 2020-02-10 10:54:08 +00:00 committed by GitHub
commit 4e70d04a57
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
*