Fix incorrect header length

Signed-off-by: Emily Astranova <emily@astralabs.dev>
This commit is contained in:
Emily Astranova 2025-01-09 11:17:14 -05:00 committed by GitHub
parent 6b26afe853
commit ac3c1bbf9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -165,7 +165,7 @@ static uint8_t get_length_from_header(wiegand_message_t *data) {
len = 0;
}
while (hfmt > 1) {
while (hfmt > 0) {
hfmt >>= 1;
len++;
}