]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhfmf.c
compatibility fix: get_clocktime() is not always available
[proxmark3-svn] / client / cmdhfmf.c
index 93c3ea65c37a00026b8b4d2b6012c6f23178d25d..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
@@ -2672,7 +2672,7 @@ int CmdHF14AMfSniff(const char *Cmd){
                }\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
@@ -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