mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-28 18:14:39 +08: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;
|
||||
}
|
||||
|
||||
if (resp.status == PM3_ETEAROFF)
|
||||
return PM3_SUCCESS;
|
||||
|
||||
bool isOK = (resp.status & STATUS_SUCCESS) >> 1;
|
||||
if (isOK == false) {
|
||||
PrintAndLogEx(FAILED, "writing " _RED_("failed"));
|
||||
|
@ -487,6 +490,10 @@ int CmdEM4x50WritePassword(const char *Cmd) {
|
|||
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
||||
return PM3_ETIMEOUT;
|
||||
}
|
||||
|
||||
if (resp.status == PM3_ETEAROFF)
|
||||
return PM3_SUCCESS;
|
||||
|
||||
success = (bool)resp.status;
|
||||
|
||||
// get, prepare and print response
|
||||
|
|
Loading…
Reference in a new issue