From 42eddf1798fc1e44c8eeff24f4fcad8a669c8e29 Mon Sep 17 00:00:00 2001 From: bthedorff <32941719+bthedorff@users.noreply.github.com> Date: Mon, 17 Jan 2022 17:48:53 -0500 Subject: [PATCH] Fix 37bit PCSC --- client/src/wiegand_formats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/wiegand_formats.c b/client/src/wiegand_formats.c index 08e77b9a1..b4c7376f6 100644 --- a/client/src/wiegand_formats.c +++ b/client/src/wiegand_formats.c @@ -780,8 +780,8 @@ static bool Pack_P10004(wiegand_card_t *card, wiegand_message_t *packed, bool pr packed->Length = 37; // Set number of bits - set_linear_field(packed, card->FacilityCode, 1, 13); - set_linear_field(packed, card->CardNumber, 14, 18); + set_linear_field(packed, card->FacilityCode, 2, 13); + set_linear_field(packed, card->CardNumber, 15, 18); set_bit_by_position(packed, evenparity32(get_linear_field(packed, 1, 18)), 0); set_bit_by_position(packed, oddparity32(get_linear_field(packed, 18, 18)), 36);