[FL-3122] Re-init NFC when starting the worker (#2399)

* Re-init NFC when starting the worker
* FuriHal: cleanup nfc init/deinit sequence
* FuriHal: a little bit more defensive nfc init

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Astra
2023-02-20 16:44:03 +02:00
committed by GitHub
parent 738e0df4f4
commit b15c4afea1
4 changed files with 26 additions and 3 deletions

View File

@@ -56,6 +56,8 @@ void nfc_worker_start(
while(furi_hal_nfc_is_busy()) {
furi_delay_ms(10);
}
furi_hal_nfc_deinit();
furi_hal_nfc_init();
nfc_worker->callback = callback;
nfc_worker->context = context;