mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-05 20:57:28 +00:00
minor fix, obey
This commit is contained in:
@@ -2584,6 +2584,13 @@ void SimulateIso14443aTagEx(uint8_t tagType, uint16_t flags, uint8_t *useruid, u
|
||||
dynamic_response_info.response + prologue);
|
||||
if (n > 0) {
|
||||
dynamic_response_info.response_n = prologue + n;
|
||||
|
||||
// count answered DESFire commands, so `-n` can bound a
|
||||
// simulation the way it does for the other tag types
|
||||
numReads++;
|
||||
if (exitAfterNReads > 0 && numReads >= exitAfterNReads) {
|
||||
finished = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -616,7 +616,7 @@ void desfire_em_print(const uint8_t *img, size_t imglen) {
|
||||
PrintAndLogEx(SUCCESS, "Tables end at.... %u", hdr->tables_end);
|
||||
PrintAndLogEx(SUCCESS, "Data starts at... %u", hdr->data_start);
|
||||
PrintAndLogEx(SUCCESS, "Card capacity.... %u bytes, %u spent", hdr->cardsize, hdr->reserved);
|
||||
PrintAndLogEx(SUCCESS, "Free memory...... " _GREEN_("%u") " bytes ( what a reader sees )"
|
||||
PrintAndLogEx(SUCCESS, "Free memory...... " _GREEN_("%u") " bytes"
|
||||
, (hdr->cardsize > hdr->reserved) ? (hdr->cardsize - hdr->reserved) : 0);
|
||||
PrintAndLogEx(SUCCESS, "Emulator memory.. %u of %u bytes spare"
|
||||
, (hdr->data_start > hdr->tables_end) ? (hdr->data_start - hdr->tables_end) : 0
|
||||
|
||||
Reference in New Issue
Block a user