mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-08 05:51:08 -07:00
Updated clone and sim handling for 48-Bit HID (C1k48s)
This commit is contained in:
parent
2a31079e78
commit
f80e8d0f85
1 changed files with 4 additions and 0 deletions
|
@ -196,6 +196,10 @@ bool add_HID_header(wiegand_message_t *data) {
|
|||
if (data->Length > 84 || data->Length == 0)
|
||||
return false;
|
||||
|
||||
if (data->Length == 48) {
|
||||
data->Mid |= 1U << (data->Length - 32); // Example leading 1: start bit
|
||||
return true;
|
||||
}
|
||||
if (data->Length >= 64) {
|
||||
data->Top |= 0x09e00000; // Extended-length header
|
||||
data->Top |= 1U << (data->Length - 64); // leading 1: start bit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue