Updated clone and sim handling for 48-Bit HID (C1k48s)
This commit is contained in:
1 parent
2a31079e78
commit
f80e8d0f85
1 file changed
+4
@@ -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