diff --git a/doorcontrol/hid/Credential.py b/doorcontrol/hid/Credential.py index a05a557..e38703b 100644 --- a/doorcontrol/hid/Credential.py +++ b/doorcontrol/hid/Credential.py @@ -43,7 +43,7 @@ class Credential: ) bits[6] = cls.even_parity(bits) bits[31] = cls.odd_parity(bits) - return cls(bitstring.Bits(bits)) + return cls(bitstring.Bits(bits), is_26bit=True) @classmethod def from_26bit_hex(cls, hex_code: str) -> "Credential":