]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fix 'hf mf perso' result feedback (#920)
authorpwpiwi <pwpiwi@users.noreply.github.com>
Mon, 16 Mar 2020 12:33:19 +0000 (13:33 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Mar 2020 12:33:19 +0000 (13:33 +0100)
client/cmdhfmf.c

index d31b8264ce497cf28fedbad9ddb76c14acb8481b..91f73ca28abc85d582e05b0d1dbc848fb71bc4ac 100644 (file)
@@ -3076,8 +3076,8 @@ int CmdHFMFPersonalize(const char *cmd) {
 \r
        UsbCommand resp;\r
        if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {\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
        } else {\r
                PrintAndLog("Command execute timeout");\r
        }\r
Impressum, Datenschutz