mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
hf mf ecfill: wait for execution and return status
This commit is contained in:
parent
8cddd4e9c9
commit
e7ff2ad1ca
3 changed files with 21 additions and 2 deletions
|
@ -2377,6 +2377,14 @@ int MifareECardLoad(uint8_t sectorcnt, uint8_t keytype, uint8_t *key) {
|
|||
if (have_uid == false) { // need a full select cycle to get the uid first
|
||||
iso14a_card_select_t card_info;
|
||||
if (iso14443a_select_card(uid, &card_info, &cuid, true, 0, true) == 0) {
|
||||
if (s == 0) {
|
||||
// first attempt, if no card let's stop directly
|
||||
retval = PM3_EFAILED;
|
||||
if (g_dbglevel >= DBG_ERROR) {
|
||||
Dbprintf("Card not found");
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue