Skip to content

Commit

Permalink
deactivate nfc when worker stop, fix the RfalIrqDriver thread don't e…
Browse files Browse the repository at this point in the history
…xit after worker exit
  • Loading branch information
leommxj committed Apr 25, 2023
1 parent 5848865 commit 9c7e844
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions as_card_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ int32_t as_card_worker_task(void* context) {
recv_packet = NULL;
}
}
furi_hal_nfc_ll_txrx_off();
furi_hal_nfc_sleep();

return 0;
}
2 changes: 2 additions & 0 deletions as_reader_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ int32_t as_reader_worker_task(void* context) {
packet = NULL;
}
}
furi_hal_nfc_ll_txrx_off();
furi_hal_nfc_sleep();

return 0;
}

0 comments on commit 9c7e844

Please sign in to comment.