minor fix, obey

This commit is contained in:
iceman1001
2026-09-14 22:18:27 +02:00
parent 72f3f15dd3
commit 59cd76905f
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -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;
}
}
}
+1 -1
View File
@@ -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