mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-30 03:29:01 -07:00
fix missing loaded counter
This commit is contained in:
parent
2ccf84f40a
commit
a69eed7950
2 changed files with 3 additions and 2 deletions
|
@ -1223,12 +1223,13 @@ int loadFileNFC_safe(const char *preferredName, void *data, size_t maxdatalen, s
|
|||
uint8_t block[MFBLOCK_SIZE] = {0};
|
||||
param_gethex_to_eol(p, 0, block, MFBLOCK_SIZE, &n);
|
||||
memcpy(&udata.bytes[(blockno * MFBLOCK_SIZE)], block, MFBLOCK_SIZE);
|
||||
counter += MFBLOCK_SIZE;
|
||||
} else if (ft == NFC_DF_PICOPASS) {
|
||||
uint8_t block[PICOPASS_BLOCK_SIZE] = {0};
|
||||
param_gethex_to_eol(p, 0, block, PICOPASS_BLOCK_SIZE, &n);
|
||||
memcpy(&udata.bytes[(blockno * PICOPASS_BLOCK_SIZE)], block, PICOPASS_BLOCK_SIZE);
|
||||
counter += PICOPASS_BLOCK_SIZE;
|
||||
}
|
||||
counter += PICOPASS_BLOCK_SIZE;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue