diff --git a/.gitignore b/.gitignore index fddae0e9..e4f13f6f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ __pycache__/ *.py[cod] *$py.class +.idea/ # C extensions *.so diff --git a/canopen/objectdictionary/__init__.py b/canopen/objectdictionary/__init__.py index 25a2f37a..5044225a 100644 --- a/canopen/objectdictionary/__init__.py +++ b/canopen/objectdictionary/__init__.py @@ -219,6 +219,17 @@ def add_member(self, variable): self.subindices[variable.subindex] = variable self.names[variable.name] = variable +class Unsigned24(struct.Struct): + def __init__(self, *args, **kwargs): + super().__init__("