mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Add hid preamble handle function for standalone
This commit is contained in:
parent
c36b352c2f
commit
7923d07ed0
5 changed files with 38 additions and 10 deletions
|
@ -176,8 +176,7 @@ void hid_calculate_checksum_and_set(uint32_t *high, uint32_t *low, uint32_t card
|
|||
newlow |= oddparity32((newlow >> 1) & 0xFFF);
|
||||
newlow |= (evenparity32((newlow >> 13) & 0xFFF)) << 25;
|
||||
|
||||
newhigh |= 0x20; // Bit 37; standard header
|
||||
newlow |= 1U << 26; // leading 1: start bit
|
||||
add_HID_preamble(NULL, &newhigh, &newlow, 26);
|
||||
|
||||
*low = newlow;
|
||||
*high = newhigh;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue