Skip to content

Commit 0e4e711

Browse files
nvxskotopes
andauthored
Fixes failure to read picopass cards immediately after emulating. (#10)
Co-authored-by: あく <alleteam@gmail.com>
1 parent bbf0cf4 commit 0e4e711

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

picopass_worker.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ static const uint8_t loclass_csns[LOCLASS_NUM_CSNS][RFAL_PICOPASS_BLOCK_LEN] = {
2121
};
2222

2323
static void picopass_worker_enable_field() {
24-
furi_hal_nfc_ll_txrx_on();
2524
furi_hal_nfc_exit_sleep();
25+
furi_hal_nfc_ll_txrx_on();
2626
furi_hal_nfc_ll_poll();
2727
}
2828

@@ -1198,6 +1198,8 @@ static void picopass_emu_handle_packet(
11981198
}
11991199

12001200
void picopass_worker_emulate(PicopassWorker* picopass_worker, bool loclass_mode) {
1201+
furi_hal_nfc_exit_sleep();
1202+
12011203
FuriHalNfcTxRxContext tx_rx = {};
12021204
PicopassEmulatorCtx emu_ctx = {
12031205
.state = PicopassEmulatorStateIdle,

0 commit comments

Comments
 (0)