Skip to content

Commit

Permalink
emv: display the transaction time as HH:MM:SS
Browse files Browse the repository at this point in the history
in the transaction log

Signed-off-by: Anton Todorov <ANTodorov@users.noreply.github.com>
  • Loading branch information
ANTodorov authored Aug 6, 2023
1 parent fa55681 commit 6781dad
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 6781dad

Please sign in to comment.