mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
fix
This commit is contained in:
parent
0a978d8f8c
commit
c9a390a480
2 changed files with 4 additions and 4 deletions
|
@ -672,16 +672,16 @@ void HIDDisplayUnpackedCard(wiegand_card_t *card, const cardformat_t format) {
|
||||||
|
|
||||||
char s[80] = {0};
|
char s[80] = {0};
|
||||||
if (format.Fields.hasFacilityCode)
|
if (format.Fields.hasFacilityCode)
|
||||||
snprintf(s, sizeof(s), "FC: %d", card->FacilityCode);
|
snprintf(s, sizeof(s), "FC: %u", card->FacilityCode);
|
||||||
|
|
||||||
if (format.Fields.hasCardNumber)
|
if (format.Fields.hasCardNumber)
|
||||||
snprintf(s + strlen(s), sizeof(s) - strlen(s), " CN: %" PRIu64, card->CardNumber);
|
snprintf(s + strlen(s), sizeof(s) - strlen(s), " CN: %" PRIu64, card->CardNumber);
|
||||||
|
|
||||||
if (format.Fields.hasIssueLevel)
|
if (format.Fields.hasIssueLevel)
|
||||||
snprintf(s + strlen(s), sizeof(s) - strlen(s), " Issue %d", card->IssueLevel);
|
snprintf(s + strlen(s), sizeof(s) - strlen(s), " Issue %u", card->IssueLevel);
|
||||||
|
|
||||||
if (format.Fields.hasOEMCode)
|
if (format.Fields.hasOEMCode)
|
||||||
snprintf(s + strlen(s), sizeof(s) - strlen(s), " OEM: %d", card->OEM);
|
snprintf(s + strlen(s), sizeof(s) - strlen(s), " OEM: %u", card->OEM);
|
||||||
|
|
||||||
if (format.Fields.hasParity)
|
if (format.Fields.hasParity)
|
||||||
snprintf(s + strlen(s), sizeof(s) - strlen(s), " parity: %s", card->ParityValid ? "valid" : "invalid");
|
snprintf(s + strlen(s), sizeof(s) - strlen(s), " parity: %s", card->ParityValid ? "valid" : "invalid");
|
||||||
|
|
|
@ -43,6 +43,6 @@ void HIDListFormats();
|
||||||
int HIDFindCardFormat(const char *format);
|
int HIDFindCardFormat(const char *format);
|
||||||
cardformat_t HIDGetCardFormat(int idx);
|
cardformat_t HIDGetCardFormat(int idx);
|
||||||
bool HIDPack(int FormatIndex, wiegand_card_t *card, wiegand_message_t *packed);
|
bool HIDPack(int FormatIndex, wiegand_card_t *card, wiegand_message_t *packed);
|
||||||
bool HIDTryUnpack(wiegand_message_t *packed, bool ignoreParity);
|
bool HIDTryUnpack(wiegand_message_t *packed, bool ignore_parity);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue