Skip to content

Commit

Permalink
use NTAG215/MFU PACK from emulator memory
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalusan committed Jan 25, 2023
1 parent 90b1cb7 commit 2e54781
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions armsrc/iso14443a.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,12 @@ bool SimulateIso14443aInit(uint8_t tagType, uint16_t flags, uint8_t *data, tag_r

AddCrc14A(rPPS, sizeof(rPPS) - 2);

if (tagType == 7) {
uint8_t pack[4];
uint16_t start = *pages * 4 + MFU_DUMP_PREFIX_LENGTH;
emlGetMemBt(pack, start, 2);
memcpy(rPACK, pack, 4);
}
AddCrc14A(rPACK, sizeof(rPACK) - 2);

static tag_response_info_t responses_init[] = {
Expand Down

0 comments on commit 2e54781

Please sign in to comment.