|
@@ -85,15 +85,17 @@ void nfc_magic_worker_write(NfcMagicWorker* nfc_magic_worker) {
|
|
|
card_found_notified = true;
|
|
card_found_notified = true;
|
|
|
}
|
|
}
|
|
|
furi_hal_nfc_sleep();
|
|
furi_hal_nfc_sleep();
|
|
|
-
|
|
|
|
|
if(!magic_wupa()) {
|
|
if(!magic_wupa()) {
|
|
|
- FURI_LOG_E(TAG, "Not Magic card");
|
|
|
|
|
|
|
+ FURI_LOG_E(TAG, "No card response to WUPA (not a magic card)");
|
|
|
nfc_magic_worker->callback(
|
|
nfc_magic_worker->callback(
|
|
|
NfcMagicWorkerEventWrongCard, nfc_magic_worker->context);
|
|
NfcMagicWorkerEventWrongCard, nfc_magic_worker->context);
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
+ furi_hal_nfc_sleep();
|
|
|
|
|
+ }
|
|
|
|
|
+ if(magic_wupa()) {
|
|
|
if(!magic_data_access_cmd()) {
|
|
if(!magic_data_access_cmd()) {
|
|
|
- FURI_LOG_E(TAG, "Not Magic card");
|
|
|
|
|
|
|
+ FURI_LOG_E(TAG, "No card response to data access command (not a magic card)");
|
|
|
nfc_magic_worker->callback(
|
|
nfc_magic_worker->callback(
|
|
|
NfcMagicWorkerEventWrongCard, nfc_magic_worker->context);
|
|
NfcMagicWorkerEventWrongCard, nfc_magic_worker->context);
|
|
|
break;
|
|
break;
|