[FL-3407] NFC: Mf Ultralight emulation optimization (#2847)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
gornekich 2023-07-05 20:55:04 +04:00 committed by GitHub
parent 906cca8f24
commit e6b0494d4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -724,6 +724,8 @@ void nfc_worker_emulate_mf_ultralight(NfcWorker* nfc_worker) {
emulator.auth_received_callback = nfc_worker_mf_ultralight_auth_received_callback;
emulator.context = nfc_worker;
rfal_platform_spi_acquire();
while(nfc_worker->state == NfcWorkerStateMfUltralightEmulate) {
mf_ul_reset_emulation(&emulator, true);
furi_hal_nfc_emulate_nfca(
@ -743,6 +745,8 @@ void nfc_worker_emulate_mf_ultralight(NfcWorker* nfc_worker) {
emulator.data_changed = false;
}
}
rfal_platform_spi_release();
}
static bool nfc_worker_mf_get_b_key_from_sector_trailer(