]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/serial.cpp
Add missing get_handle function to Serial
[libs/core.git] / source / io / serial.cpp
index 2b3458a3eb0ea293563a522f6519ef8467ed76dd..b4cfaab4726718bbfaa5f450cd3c1d7e1bcf29eb 100644 (file)
@@ -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