Skip to content

Commit 7b8ca37

Browse files
Add declaration to expose enable_* functions from SerialBase
UnBufferedSerial is missing a declaration to expose enable_input and enable_output, which are inherited from the private base class Serial Base. Add the using-declaration to the class definition.
1 parent dde7b22 commit 7b8ca37

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/include/drivers/UnbufferedSerial.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,16 @@ class UnbufferedSerial:
155155
*/
156156
short poll(short events) const override;
157157

158-
using SerialBase::readable;
159-
using SerialBase::writeable;
160-
using SerialBase::format;
161158
using SerialBase::attach;
162159
using SerialBase::baud;
160+
using SerialBase::enable_input;
161+
using SerialBase::enable_output;
162+
using SerialBase::format;
163+
using SerialBase::readable;
164+
using SerialBase::writeable;
165+
using SerialBase::IrqCnt;
163166
using SerialBase::RxIrq;
164167
using SerialBase::TxIrq;
165-
using SerialBase::IrqCnt;
166168

167169
#if DEVICE_SERIAL_FC
168170
// For now use the base enum - but in future we may have extra options

0 commit comments

Comments
 (0)