Skip to content

Fix BufferedSerial visibility of private base class enum enumerators #12382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions drivers/BufferedSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ class BufferedSerial:

// 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
*
Expand All @@ -264,6 +269,10 @@ class BufferedSerial:
// 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
*
Expand Down