From ac3c1bbf9f09fbf86317d9d720d7a8a59631ca14 Mon Sep 17 00:00:00 2001 From: Emily Astranova Date: Thu, 9 Jan 2025 11:17:14 -0500 Subject: [PATCH 1/2] 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 d279744b91..f77ab5bfe7 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++; } From 776b1afe571476759c943f0ed1e67f6a417303e1 Mon Sep 17 00:00:00 2001 From: Emily Astranova Date: Thu, 9 Jan 2025 16:05:22 -0500 Subject: [PATCH 2/2] Update CHANGELOG.md Signed-off-by: Emily Astranova --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7207389e18..fb080051bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ This project uses the changelog in accordance with [keepchangelog](http://keepac - Added keys from Momentum firmware projects. (@onovy) - Added Dutch Statistics Agency default key (@eagle00789) - Changed hf mf autopwn - now allows for custom suffix (@zxkmm) +- Fixed Wiegand decode with hex input dropping the first bit (@emilyastranova) ## [Orca.4.19552][2024-11-22] - Fixed `hf_legic.lua` - removed bit32 commands from the script (@diorch1968)