Skip attempting GET DATA if reported as unsupported

This commit is contained in:
kormax
2026-05-08 19:46:21 +03:00
parent b2f5ae43c6
commit e96b6931e6
+11
View File
@@ -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);