Skip to content

Commit 8910c24

Browse files
committed
Fix BufferedSerial visibility of private base class enum enumerators
Each enum enumerator needs to be exposed to be usable in the sub class.
1 parent f73a62a commit 8910c24

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/BufferedSerial.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,11 @@ class BufferedSerial:
248248

249249
// Expose private SerialBase::Parity as BufferedSerial::Parity
250250
using SerialBase::Parity;
251+
using SerialBase::None;
252+
using SerialBase::Odd;
253+
using SerialBase::Even;
254+
using SerialBase::Forced1;
255+
using SerialBase::Forced0;
251256

252257
/** Set the transmission format used by the serial port
253258
*
@@ -264,6 +269,10 @@ class BufferedSerial:
264269
// For now use the base enum - but in future we may have extra options
265270
// such as XON/XOFF or manual GPIO RTSCTS.
266271
using SerialBase::Flow;
272+
using SerialBase::Disabled;
273+
using SerialBase::RTS;
274+
using SerialBase::CTS;
275+
using SerialBase::RTSCTS;
267276

268277
/** Set the flow control type on the serial port
269278
*

0 commit comments

Comments
 (0)