]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhfmf.c
fixing iso15693
[proxmark3-svn] / client / cmdhfmf.c
index 33790230fa7324ccae4529f0400fd1f3d26154fa..91f73ca28abc85d582e05b0d1dbc848fb71bc4ac 100644 (file)
@@ -677,7 +677,7 @@ int CmdHF14AMfNested(const char *Cmd) {
                // 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
@@ -3076,8 +3076,8 @@ int CmdHFMFPersonalize(const char *cmd) {
 \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
Impressum, Datenschutz