mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 20:28:10 -06:00
serialhdl: Add a get_msgparser() method
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
647f1ee2e0
commit
461ed4cb80
3 changed files with 13 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue