fix: rewind if 0x38 0x39 write fails
This commit is contained in:
1 parent
f7a9682a9e
commit
cd24d8b0b0
1 file changed
+1
@@ -3591,6 +3591,7 @@ static int CmdHF15CSetUID(const char *Cmd) {
|
||||
used_gen1 = true;
|
||||
|
||||
if (hf15_magic_gen1_write_uid(payload.uid) != PM3_SUCCESS) {
|
||||
hf15_magic_gen1_rollback_uid();
|
||||
PrintAndLogEx(FAILED, "Setting new UID ( " _RED_("fail") " )");
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
return PM3_ESOFT;
|
||||
|
||||
Reference in new issue
Block a user