Skip to content

Commit

Permalink
reset clock ticks in nfc test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Aug 10, 2023
1 parent 3fd6788 commit 1870751
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ void process_apdu(CAPDU *capdu, RAPDU *rapdu) {
#ifdef TEST
if (CLA == 0x00 && INS == 0xEE && LC == 0x04 && memcmp(DATA, "\x12\x56\xAB\xF0", 4) == 0) {
printf("MAGIC REBOOT command received!\r\n");
testmode_set_initial_ticks(0);
testmode_set_initial_ticks(device_get_tick());
ctap_install(0);
SW = 0x9000;
LL = 0;
Expand Down

0 comments on commit 1870751

Please sign in to comment.