mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-28 18:14:39 +08:00
default to oem 900 for C15001 format
This commit is contained in:
parent
5657e392f4
commit
39e7a58389
1 changed files with 3 additions and 0 deletions
|
@ -483,6 +483,9 @@ static bool Pack_C15001(wiegand_card_t *card, wiegand_message_t *packed, bool pr
|
|||
if (card->IssueLevel > 0) return false; // Not used in this format
|
||||
if (card->OEM > 0x000003FF) return false; // Can't encode OEM.
|
||||
|
||||
if (card->OEM == 0)
|
||||
card->OEM = 900;
|
||||
|
||||
packed->Length = 36; // Set number of bits
|
||||
set_linear_field(packed, card->OEM, 1, 10);
|
||||
set_linear_field(packed, card->FacilityCode, 11, 8);
|
||||
|
|
Loading…
Reference in a new issue