// check if we can authenticate to sector\r
res = mfCheckKeys(blockNo, keyType, timeout14a, true, 1, key, &key64);\r
if (res) {\r
- PrintAndLog("Can't authenticate to block:%3d key type:%c key:%s", blockNo, keyType?'B':'A', sprint_hex(key, 6));\r
+ PrintAndLog("Can't authenticate to block %d, key type %c, key %s", blockNo, keyType?'B':'A', sprint_hex(key, 6));\r
return 3;\r
}\r
\r
}\r
\r
UsbCommand resp;\r
- if (WaitForResponseTimeoutW(CMD_ACK, &resp, 2000, false)) {\r
+ if (WaitForResponseTimeoutW(CMD_UNKNOWN, &resp, 2000, false)) {\r
res = resp.arg[0] & 0xff;\r
uint16_t traceLen = resp.arg[1];\r
len = resp.arg[2];\r
\r
UsbCommand resp;\r
if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {\r
- uint8_t isOK = resp.arg[0] & 0xff;\r
- PrintAndLog("Personalization %s", isOK ? "FAILED" : "SUCCEEDED");\r
+ bool isOK = resp.arg[0];\r
+ PrintAndLog("Personalization %s", isOK ? "SUCCEEDED" : "FAILED");\r
} else {\r
PrintAndLog("Command execute timeout");\r
}\r