serialhdl: Add a get_msgparser() method

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-06-20 22:08:38 -04:00
parent 647f1ee2e0
commit 461ed4cb80
3 changed files with 13 additions and 11 deletions

View file

@ -116,6 +116,8 @@ class SerialReader:
self.ffi_lib.serialqueue_get_stats(
self.serialqueue, self.stats_buf, len(self.stats_buf))
return self.ffi_main.string(self.stats_buf)
def get_msgparser(self):
return self.msgparser
# Serial response callbacks
def register_response(self, callback, name, oid=None):
with self.lock: