"emv reader" - make apdu logging based on verbose flag and honor previous set value. In case we ever do this in Preferences
This commit is contained in:
1 parent
641308e29c
commit
0b9191185b
1 file changed
+5
@@ -2719,6 +2719,9 @@ static int CmdEMVReader(const char *Cmd) {
|
||||
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " to exit");
|
||||
}
|
||||
|
||||
bool old_logging = GetAPDULogging();
|
||||
SetAPDULogging(verbose);
|
||||
|
||||
uint8_t AID[APDU_AID_LEN] = {0};
|
||||
size_t AIDlen = 0;
|
||||
uint8_t buf[APDU_RES_LEN] = {0};
|
||||
@@ -2887,6 +2890,8 @@ static int CmdEMVReader(const char *Cmd) {
|
||||
} while (continuous);
|
||||
|
||||
DropFieldEx(channel);
|
||||
|
||||
SetAPDULogging(old_logging);
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user