mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
fix hid sim long id length
This commit is contained in:
parent
59e66ce5fd
commit
359399b2e6
1 changed files with 2 additions and 2 deletions
|
@ -917,7 +917,7 @@ void CmdHIDsimTAGEx(uint32_t hi2, uint32_t hi, uint32_t lo, uint8_t longFMT, boo
|
||||||
bit 0 = fc8
|
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;
|
uint8_t bitlen = 0;
|
||||||
|
|
||||||
if (longFMT) {
|
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.");
|
DbpString("Tags can only have 84 bits.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
bitlen = 8+84*2;
|
bitlen = 8+8*2+84*2;
|
||||||
// special start of frame marker containing invalid Manchester bit sequences
|
// special start of frame marker containing invalid Manchester bit sequences
|
||||||
uint16_t n = 8;
|
uint16_t n = 8;
|
||||||
hi2 |= 0x9E00000; // 9E: long format identifier
|
hi2 |= 0x9E00000; // 9E: long format identifier
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue