mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
chg: 'hf 15 restore' - fail message added
This commit is contained in:
parent
0383d7f052
commit
c03e425550
1 changed files with 5 additions and 2 deletions
|
@ -876,11 +876,14 @@ int CmdHF15Restore(const char *Cmd) {
|
|||
snprintf(tmpCmd, sizeof(tmpCmd), "%s u %u %s", newCmdPrefix, i, hex);
|
||||
PrintAndLogEx(DEBUG, "Command to be sent| %s", tmpCmd);
|
||||
|
||||
for (tried = 0; tried < retries; tried++)
|
||||
if (!(retval = CmdHF15Write(tmpCmd)))
|
||||
for (tried = 0; tried < retries; tried++) {
|
||||
if (!(retval = CmdHF15Write(tmpCmd))) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (tried >= retries) {
|
||||
fclose(f);
|
||||
PrintAndLogEx(FAILED, "Restore failed. Too many retries.");
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue