mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
EM4x50 to exit if tear off
This commit is contained in:
parent
d8b2dc2ebf
commit
9a3c669e59
1 changed files with 7 additions and 0 deletions
|
@ -393,6 +393,9 @@ int CmdEM4x50Write(const char *Cmd) {
|
||||||
return PM3_ETIMEOUT;
|
return PM3_ETIMEOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (resp.status == PM3_ETEAROFF)
|
||||||
|
return PM3_SUCCESS;
|
||||||
|
|
||||||
bool isOK = (resp.status & STATUS_SUCCESS) >> 1;
|
bool isOK = (resp.status & STATUS_SUCCESS) >> 1;
|
||||||
if (isOK == false) {
|
if (isOK == false) {
|
||||||
PrintAndLogEx(FAILED, "writing " _RED_("failed"));
|
PrintAndLogEx(FAILED, "writing " _RED_("failed"));
|
||||||
|
@ -487,6 +490,10 @@ int CmdEM4x50WritePassword(const char *Cmd) {
|
||||||
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
||||||
return PM3_ETIMEOUT;
|
return PM3_ETIMEOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (resp.status == PM3_ETEAROFF)
|
||||||
|
return PM3_SUCCESS;
|
||||||
|
|
||||||
success = (bool)resp.status;
|
success = (bool)resp.status;
|
||||||
|
|
||||||
// get, prepare and print response
|
// get, prepare and print response
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue