X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fserial.cpp;h=b4cfaab4726718bbfaa5f450cd3c1d7e1bcf29eb;hb=481b844ed7d180ffbf70223075f2fc1ffdb5b444;hp=2b3458a3eb0ea293563a522f6519ef8467ed76dd;hpb=edeb93fa4182984422f70c453ced8ad3acabe1d0;p=libs%2Fcore.git diff --git a/source/io/serial.cpp b/source/io/serial.cpp index 2b3458a..b4cfaab 100644 --- a/source/io/serial.cpp +++ b/source/io/serial.cpp @@ -120,5 +120,11 @@ unsigned Serial::do_read(char *buf, unsigned size) return ret; } +const Handle &Serial::get_handle(Mode m) +{ + check_access(m); + return handle; +} + } // namespace IO } // namespace Msp