aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/msgproto.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-03-31 20:30:14 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-04-04 18:29:31 -0400
commit1ab02e522565ba991e13a0629041cadf60066926 (patch)
tree2b139b88fdec859ea0ad24677aaccdd5b14ea6a9 /klippy/msgproto.py
parent4c3d50693ee37f82ff2edad6a9779bcfd56fca1a (diff)
downloadkutter-1ab02e522565ba991e13a0629041cadf60066926.tar.gz
kutter-1ab02e522565ba991e13a0629041cadf60066926.tar.xz
kutter-1ab02e522565ba991e13a0629041cadf60066926.zip
bus: Support bus enumerations and add support for reserved pins
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/msgproto.py')
-rw-r--r--klippy/msgproto.py4
1 files changed, 4 insertions, 0 deletions
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: