Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Fixes failure to read picopass cards immediately after emulating. (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: あく <[email protected]>
  • Loading branch information
nvx and skotopes authored Aug 5, 2023
1 parent fdb9b1c commit 4670a88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion picopass/picopass_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ static const uint8_t loclass_csns[LOCLASS_NUM_CSNS][RFAL_PICOPASS_BLOCK_LEN] = {
};

static void picopass_worker_enable_field() {
furi_hal_nfc_ll_txrx_on();
furi_hal_nfc_exit_sleep();
furi_hal_nfc_ll_txrx_on();
furi_hal_nfc_ll_poll();
}

Expand Down Expand Up @@ -1198,6 +1198,8 @@ static void picopass_emu_handle_packet(
}

void picopass_worker_emulate(PicopassWorker* picopass_worker, bool loclass_mode) {
furi_hal_nfc_exit_sleep();

FuriHalNfcTxRxContext tx_rx = {};
PicopassEmulatorCtx emu_ctx = {
.state = PicopassEmulatorStateIdle,
Expand Down

0 comments on commit 4670a88

Please sign in to comment.