Added getPort back in to Serial interface. Only setPort needed to be removed

This commit is contained in:
Eric Katzfey
2023-12-27 09:09:30 -08:00
parent 88611f2228
commit 231f072dc0
4 changed files with 7 additions and 19 deletions
+5
View File
@@ -130,4 +130,9 @@ bool Serial::setFlowcontrol(FlowControl flowcontrol)
return _impl.setFlowcontrol(flowcontrol);
}
const char *Serial::getPort() const
{
return _impl.getPort();
}
} // namespace device
@@ -83,6 +83,8 @@ public:
FlowControl getFlowcontrol() const;
bool setFlowcontrol(FlowControl flowcontrol);
const char *getPort() const;
private:
// Disable copy constructors
Serial(const Serial &);