chg: smartcard - wait until SCL goes high

This commit is contained in:
Chris 2018-07-06 11:16:46 +02:00
commit bcffde1198
3 changed files with 50 additions and 28 deletions

View file

@ -101,7 +101,7 @@ int CmdSmartRaw(const char *Cmd) {
PrintAndLogEx(WARNING, "smart card response failed");
return 1;
}
PrintAndLogEx(SUCCESS,"resp: %s", sprint_hex(resp.d.asBytes, resp.arg[0]));
PrintAndLogEx(SUCCESS,"isOK %d | resp: %s",resp.arg[0], sprint_hex(resp.d.asBytes, resp.arg[1]));
}
return 0;
}
@ -259,7 +259,7 @@ int CmdSmartReader(const char *Cmd){
uint8_t isok = resp.arg[0] & 0xFF;
if (!isok) {
PrintAndLogEx(FAILED, "failed");
PrintAndLogEx(FAILED, "failed to get ATR");
return 1;
}