mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-12 17:27:54 -06:00
bus: Support bus enumerations and add support for reserved pins
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
4c3d50693e
commit
1ab02e5225
5 changed files with 87 additions and 23 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue