Iso7816Exchange: avoid sending systematically typeA APDUs firstly on typeB tags

This commit is contained in:
Philippe Teuwen committed 2021-06-04 21:58:38 +02:00
1 parent 11334f9440
commit 56daa155b5
7 files changed
+44 -6

No files matched your search

+2 -1
View File
@@ -15,13 +15,14 @@
#include "common.h"
#include "pm3_cmd.h" // Packet structs
#include "util.h" // FILE_PATH_SIZE
#include "iso7816/iso7816core.h" // SetISODEPState
#ifdef __cplusplus
extern "C" {
#endif
#ifndef DropField
#define DropField() { clearCommandBuffer(); SendCommandNG(CMD_HF_DROPFIELD, NULL, 0); }
#define DropField() { clearCommandBuffer(); SetISODEPState(ISODEP_INACTIVE); SendCommandNG(CMD_HF_DROPFIELD, NULL, 0); }
#endif
#ifndef DropFieldEx