mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
Updated clone and sim handling for 48-Bit HID (C1k48s)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user