From ac3c1bbf9f09fbf86317d9d720d7a8a59631ca14 Mon Sep 17 00:00:00 2001 From: Emily Astranova Date: Thu, 9 Jan 2025 11:17:14 -0500 Subject: [PATCH] Fix incorrect header length Signed-off-by: Emily Astranova --- client/src/wiegand_formatutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/wiegand_formatutils.c b/client/src/wiegand_formatutils.c index d279744b9..f77ab5bfe 100644 --- a/client/src/wiegand_formatutils.c +++ b/client/src/wiegand_formatutils.c @@ -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++; }