From e96b6931e6b3f62c2ec3ab4555482775ddae4014 Mon Sep 17 00:00:00 2001 From: kormax <3392860+kormax@users.noreply.github.com> Date: Fri, 8 May 2026 19:46:21 +0300 Subject: [PATCH] Skip attempting GET DATA if reported as unsupported --- client/src/cmdhfcalypso.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/src/cmdhfcalypso.c b/client/src/cmdhfcalypso.c index 8c5e0f1f9..8dc37ceea 100644 --- a/client/src/cmdhfcalypso.c +++ b/client/src/cmdhfcalypso.c @@ -1781,6 +1781,10 @@ static void calypso_print_info_data_objects(void) { continue; } + if (sw == ISO7816_INS_NOT_SUPPORTED) { + break; + } + if (has_data == false) { continue; } @@ -1811,6 +1815,13 @@ static size_t calypso_probe_get_data_objects(json_t *entries, bool print_results continue; } + if (sw == ISO7816_INS_NOT_SUPPORTED) { + if (verbose) { + PrintAndLogEx(INFO, " %04X %-24s : " _YELLOW_("%04X") " - %s", probe->tag, probe->name, sw, GetAPDUCodeDescription(sw >> 8, sw & 0xFF)); + } + break; + } + if (calypso_read_sw_has_data(sw, response_len)) { if (print_results || verbose) { calypso_print_get_data_object(probe, response, response_len);