From 461ed4cb80ad23f7395621fbe6010d9ac9a7aaa5 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 20 Jun 2019 22:08:38 -0400 Subject: serialhdl: Add a get_msgparser() method Signed-off-by: Kevin O'Connor --- klippy/serialhdl.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'klippy/serialhdl.py') diff --git a/klippy/serialhdl.py b/klippy/serialhdl.py index e0548e37..82748b70 100644 --- a/klippy/serialhdl.py +++ b/klippy/serialhdl.py @@ -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: -- cgit v1.2.3-70-g09d2