Skip to content

Commit

Permalink
fix 'hf mf perso' result feedback (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwpiwi authored Mar 16, 2020
1 parent aa8ff59 commit 5bc3841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/cmdhfmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 5bc3841

Please sign in to comment.