Skip to content

Commit

Permalink
Merge pull request RfidResearchGroup#2068 from ANTodorov/emv_reader_t…
Browse files Browse the repository at this point in the history
…ransaction_time

emv: display the transaction time as HH:MM:SS
  • Loading branch information
iceman1001 authored Aug 6, 2023
2 parents fa55681 + 6781dad commit 03cc31c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/emv/cmdemv.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ static int emv_parse_log(struct tlvdb *ttdb, const uint8_t *d, size_t n) {
PrintAndLogEx(INFO, "%-30s... " _YELLOW_("20%02x-%02x-%02x"), s, d[pos], d[pos + 1], d[pos + 2]);
}
break;
case 0x9F21:
if (tpitem->len == 3) {
PrintAndLogEx(INFO, "%-30s... " _YELLOW_("%02x:%02x:%02x"), s, d[pos], d[pos + 1], d[pos + 2]);
}
break;
default:
PrintAndLogEx(INFO, "%-30s... " _YELLOW_("%s"), s, sprint_hex_inrow(d + pos, tpitem->len));
break;
Expand Down

0 comments on commit 03cc31c

Please sign in to comment.