From 1ab02e522565ba991e13a0629041cadf60066926 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 31 Mar 2019 20:30:14 -0400 Subject: bus: Support bus enumerations and add support for reserved pins Signed-off-by: Kevin O'Connor --- klippy/msgproto.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'klippy/msgproto.py') diff --git a/klippy/msgproto.py b/klippy/msgproto.py index a26bfbc4..25bc8e08 100644 --- a/klippy/msgproto.py +++ b/klippy/msgproto.py @@ -384,6 +384,10 @@ class MessageParser: except Exception as e: logging.exception("process_identify error") raise error("Error during identify: %s" % (str(e),)) + def get_enumerations(self): + return dict(self.enumerations) + def get_constants(self): + return dict(self.config) class sentinel: pass def get_constant(self, name, default=sentinel, parser=str): if name not in self.config: -- cgit v1.2.3-70-g09d2