[FL-3064] Skip the read when the card is not present (#2494)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Astra
2023-03-16 11:06:11 +02:00
committed by GitHub
parent e90042368f
commit 6aa0c08f3a
3 changed files with 12 additions and 1 deletions

View File

@@ -115,7 +115,8 @@ bool nfc_scene_mf_classic_dict_attack_on_event(void* context, SceneManagerEvent
consumed = true;
}
} else if(event.event == NfcWorkerEventAborted) {
if(state == DictAttackStateUserDictInProgress) {
if(state == DictAttackStateUserDictInProgress &&
dict_attack_get_card_state(nfc->dict_attack)) {
nfc_scene_mf_classic_dict_attack_prepare_view(nfc, state);
consumed = true;
} else {