From 359399b2e69cc591c4d4e4440dc68bb9ecc17284 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 15 Sep 2019 02:01:53 +0200 Subject: [PATCH] fix hid sim long id length --- armsrc/lfops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/lfops.c b/armsrc/lfops.c index ead9966ae..ba3b6e865 100644 --- a/armsrc/lfops.c +++ b/armsrc/lfops.c @@ -917,7 +917,7 @@ void CmdHIDsimTAGEx(uint32_t hi2, uint32_t hi, uint32_t lo, uint8_t longFMT, boo bit 0 = fc8 */ - uint8_t bits[8+84*2] = { 0, 0, 0, 1, 1, 1, 0, 1 }; + uint8_t bits[8+8*2+84*2] = { 0, 0, 0, 1, 1, 1, 0, 1 }; uint8_t bitlen = 0; if (longFMT) { @@ -926,7 +926,7 @@ void CmdHIDsimTAGEx(uint32_t hi2, uint32_t hi, uint32_t lo, uint8_t longFMT, boo DbpString("Tags can only have 84 bits."); return; } - bitlen = 8+84*2; + bitlen = 8+8*2+84*2; // special start of frame marker containing invalid Manchester bit sequences uint16_t n = 8; hi2 |= 0x9E00000; // 9E: long format identifier