fix 'hf mf perso' result feedback (#920)

This commit is contained in:
pwpiwi 2020-03-16 13:33:19 +01:00 committed by GitHub
commit 5bc3841ad1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3076,8 +3076,8 @@ int CmdHFMFPersonalize(const char *cmd) {
UsbCommand resp;
if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {
uint8_t isOK = resp.arg[0] & 0xff;
PrintAndLog("Personalization %s", isOK ? "FAILED" : "SUCCEEDED");
bool isOK = resp.arg[0];
PrintAndLog("Personalization %s", isOK ? "SUCCEEDED" : "FAILED");
} else {
PrintAndLog("Command execute timeout");
}